util/nvmutil: Honour the INSTALL variable

Don't assume "install" is the correct command.

Signed-off-by: Leah Rowe <leah@libreboot.org>
master
Leah Rowe 2025-01-03 02:08:38 +00:00
parent e993212146
commit ac6f3884ad
1 changed files with 2 additions and 1 deletions

View File

@ -6,12 +6,13 @@ CC?=cc
CFLAGS?=-Os -Wall -Wextra -Werror -pedantic
DESTDIR?=
PREFIX?=/usr/local
INSTALL?=install
nvm: nvmutil.c
$(CC) $(CFLAGS) nvmutil.c -o nvm
install:
install nvm $(DESTDIR)$(PREFIX)/bin/nvm
$(INSTALL) nvm $(DESTDIR)$(PREFIX)/bin/nvm
uninstall:
rm -f $(DESTDIR)$(PREFIX)/nvm