From 9184940f3409c22301763a70fa904d2d196c9f54 Mon Sep 17 00:00:00 2001 From: Riku Viitanen Date: Mon, 6 Nov 2023 01:06:16 +0200 Subject: nvmutil: make install make install is nice to have. now respects$(PREFIX) as well. Signed-off-by: Riku Viitanen --- util/nvmutil/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'util') diff --git a/util/nvmutil/Makefile b/util/nvmutil/Makefile index 47ab02fb..f9f72370 100644 --- a/util/nvmutil/Makefile +++ b/util/nvmutil/Makefile @@ -1,11 +1,16 @@ # SPDX-License-Identifier: MIT # SPDX-FileCopyrightText: 2022 Leah Rowe +# SPDX-FileCopyrightText: 2023 Riku Viitanen CC=cc CFLAGS=-Os -Wall -Wextra -Werror -pedantic +PREFIX?=/usr/bin -all: +nvm: $(CC) $(CFLAGS) nvmutil.c -o nvm +install: nvm + install nvm $(PREFIX)/nvm + clean: rm -f nvm -- cgit v1.2.1