util/nvmutil: Honour the INSTALL variable

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

Signed-off-by: Leah Rowe <leah@libreboot.org>
20241206_branch
Leah Rowe 2025-01-03 02:08:38 +00:00
parent 8008838abb
commit efd50ee548
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