diff options
author | Riku Viitanen <riku.viitanen@protonmail.com> | 2023-11-06 01:06:16 +0200 |
---|---|---|
committer | Riku Viitanen <riku.viitanen@protonmail.com> | 2023-11-06 01:06:16 +0200 |
commit | 9184940f3409c22301763a70fa904d2d196c9f54 (patch) | |
tree | 4ae21556f3b9f91ef67d1a3a75af376b9304f56d | |
parent | 5a3154709b0e6ee64af13b0f3dc2966456bb3d3f (diff) |
nvmutil: make install
make install is nice to have. now respects$(PREFIX) as well.
Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com>
-rw-r--r-- | util/nvmutil/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
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 <leah@libreboot.org> +# SPDX-FileCopyrightText: 2023 Riku Viitanen <riku.viitanen@protonmail.com> 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 |