summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/util/nvmutil/Makefile b/util/nvmutil/Makefile
index 3d2be47e..9bc0e381 100644
--- a/util/nvmutil/Makefile
+++ b/util/nvmutil/Makefile
@@ -8,21 +8,23 @@ DESTDIR?=
PREFIX?=/usr/local
INSTALL?=install
-BIN=nvmutil
+PROG=nvmutil
-$(BIN): nvmutil.c
- $(CC) $(CFLAGS) nvmutil.c -o $(BIN)
+all: $(PROG)
-install: $(BIN)
- mkdir -p $(DESTDIR)$(PREFIX)/bin
- $(INSTALL) $(BIN) $(DESTDIR)$(PREFIX)/bin/
+$(PROG): nvmutil.c
+ $(CC) $(CFLAGS) nvmutil.c -o $(PROG)
+
+install: $(PROG)
+ mkdir -p $(DESTDIR)$(PREFIX)/bin/
+ install $(PROG) $(DESTDIR)$(PREFIX)/bin/
uninstall:
- rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
+ rm -f $(DESTDIR)$(PREFIX)/bin/$(PROG)
clean:
- rm -f $(BIN)
+ rm -f $(PROG)
distclean: clean
-.PHONY: install uninstall clean distclean
+.PHONY: all install uninstall clean distclean