diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-09 06:46:12 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-09 06:46:12 +0000 |
| commit | f266e2a16c1b70eaa51ab13e4d3c5578d6c965a2 (patch) | |
| tree | 2bd1ae04a8474bec786be541cce2786e354ef4bb | |
| parent | c96254be8b42571f4a33cb2e0fb924e3a1d5da13 (diff) | |
util/nvmutil: standardised Makefile (add all)
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | util/nvmutil/Makefile | 20 |
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 |
