util/nvmutil: standardised Makefile (add all)

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-09 06:46:12 +00:00
parent c96254be8b
commit f266e2a16c
+11 -9
View File
@@ -8,21 +8,23 @@ DESTDIR?=
PREFIX?=/usr/local PREFIX?=/usr/local
INSTALL?=install INSTALL?=install
BIN=nvmutil PROG=nvmutil
$(BIN): nvmutil.c all: $(PROG)
$(CC) $(CFLAGS) nvmutil.c -o $(BIN)
install: $(BIN) $(PROG): nvmutil.c
mkdir -p $(DESTDIR)$(PREFIX)/bin $(CC) $(CFLAGS) nvmutil.c -o $(PROG)
$(INSTALL) $(BIN) $(DESTDIR)$(PREFIX)/bin/
install: $(PROG)
mkdir -p $(DESTDIR)$(PREFIX)/bin/
install $(PROG) $(DESTDIR)$(PREFIX)/bin/
uninstall: uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) rm -f $(DESTDIR)$(PREFIX)/bin/$(PROG)
clean: clean:
rm -f $(BIN) rm -f $(PROG)
distclean: clean distclean: clean
.PHONY: install uninstall clean distclean .PHONY: all install uninstall clean distclean