summaryrefslogtreecommitdiff
path: root/util/nvmutil/Makefile
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-09 06:46:12 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-09 06:46:12 +0000
commitf266e2a16c1b70eaa51ab13e4d3c5578d6c965a2 (patch)
tree2bd1ae04a8474bec786be541cce2786e354ef4bb /util/nvmutil/Makefile
parentc96254be8b42571f4a33cb2e0fb924e3a1d5da13 (diff)
util/nvmutil: standardised Makefile (add all)
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/Makefile')
-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