mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
982f257f58
DESTDIR is the root directory where it goes, which is normally an empty string; PREFIX is where the bin directory is located, relative to DESTDIR Default to /usr/local for PREFIX, not /usr, because /usr/bin is for system utilities. nvmutil is a local utility. Signed-off-by: Leah Rowe <leah@libreboot.org>
24 lines
447 B
Makefile
24 lines
447 B
Makefile
# SPDX-License-Identifier: MIT
|
|
# SPDX-FileCopyrightText: 2022,2025 Leah Rowe <leah@libreboot.org>
|
|
# SPDX-FileCopyrightText: 2023 Riku Viitanen <riku.viitanen@protonmail.com>
|
|
|
|
CC?=cc
|
|
CFLAGS?=-Os -Wall -Wextra -Werror -pedantic
|
|
DESTDIR?=
|
|
PREFIX?=/usr/local
|
|
|
|
nvm: nvmutil.c
|
|
$(CC) $(CFLAGS) nvmutil.c -o nvm
|
|
|
|
install:
|
|
install nvm $(DESTDIR)$(PREFIX)/bin/nvm
|
|
|
|
uninstall: clean
|
|
rm -f $(DESTDIR)$(PREFIX)/nvm
|
|
|
|
distclean:
|
|
rm -f nvm
|
|
|
|
clean:
|
|
rm -f nvm
|