nvmutil: make install

make install is nice to have. now respects$(PREFIX) as well.

Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com>
btrfsvols
Riku Viitanen 2023-11-06 01:06:16 +02:00
parent 5a3154709b
commit 9184940f34
1 changed files with 6 additions and 1 deletions

View File

@ -1,11 +1,16 @@
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2022 Leah Rowe <leah@libreboot.org> # SPDX-FileCopyrightText: 2022 Leah Rowe <leah@libreboot.org>
# SPDX-FileCopyrightText: 2023 Riku Viitanen <riku.viitanen@protonmail.com>
CC=cc CC=cc
CFLAGS=-Os -Wall -Wextra -Werror -pedantic CFLAGS=-Os -Wall -Wextra -Werror -pedantic
PREFIX?=/usr/bin
all: nvm:
$(CC) $(CFLAGS) nvmutil.c -o nvm $(CC) $(CFLAGS) nvmutil.c -o nvm
install: nvm
install nvm $(PREFIX)/nvm
clean: clean:
rm -f nvm rm -f nvm