summaryrefslogtreecommitdiff
path: root/util/nvmutil
diff options
context:
space:
mode:
authorLeah Rowe <vimuser@noreply.codeberg.org>2023-11-06 00:03:29 +0000
committerLeah Rowe <vimuser@noreply.codeberg.org>2023-11-06 00:03:29 +0000
commit139815f95c633a3feebecdc07004e268d6ddad00 (patch)
tree5e49b7b1bd7c04aaa4d42b5b1f89e2a61225fcf9 /util/nvmutil
parent9be589efbc343525c0ea3d3a89ed93a10aa06e00 (diff)
parent9184940f3409c22301763a70fa904d2d196c9f54 (diff)
Merge pull request 'nvmutil: make install' (#149) from Riku_V/lbmk:nvmins into master
Reviewed-on: https://codeberg.org/libreboot/lbmk/pulls/149
Diffstat (limited to 'util/nvmutil')
-rw-r--r--util/nvmutil/Makefile7
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