mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 13:49:57 +02:00
util/nvmutil: Makefile cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+9
-19
@@ -8,31 +8,21 @@ DESTDIR?=
|
|||||||
PREFIX?=/usr/local
|
PREFIX?=/usr/local
|
||||||
INSTALL?=install
|
INSTALL?=install
|
||||||
|
|
||||||
# nvm is the old binary name,
|
BIN=nvmutil
|
||||||
# but it was renamed to nvmutil
|
|
||||||
# to avoid conflict with a certain
|
|
||||||
# package manager by that name!
|
|
||||||
|
|
||||||
nvmutil: nvmutil.c
|
$(BIN): nvmutil.c
|
||||||
rm -f nvm
|
$(CC) $(CFLAGS) nvmutil.c -o $(BIN)
|
||||||
$(CC) $(CFLAGS) nvmutil.c -o nvmutil
|
|
||||||
|
|
||||||
install:
|
install: $(BIN)
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||||
$(INSTALL) nvmutil $(DESTDIR)$(PREFIX)/bin/
|
$(INSTALL) $(BIN) $(DESTDIR)$(PREFIX)/bin/
|
||||||
|
|
||||||
# do not delete *bin/nvm because
|
|
||||||
# there is a package manager by
|
|
||||||
# that name. this makefile now
|
|
||||||
# treats nvmutil as the binary
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(PREFIX)/bin/nvmutil
|
rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
|
||||||
|
|
||||||
distclean:
|
|
||||||
rm -f nvm nvmutil
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f nvm nvmutil
|
rm -f $(BIN)
|
||||||
|
|
||||||
|
distclean: clean
|
||||||
|
|
||||||
.PHONY: install uninstall clean distclean
|
.PHONY: install uninstall clean distclean
|
||||||
|
|||||||
Reference in New Issue
Block a user