mirror of
https://codeberg.org/canoeboot/cbmk.git
synced 2025-01-21 22:50:06 +00:00
da32fe1928
Signed-off-by: Leah Rowe <leah@libreboot.org>
24 lines
465 B
Makefile
24 lines
465 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
|
|
INSTALL?=install
|
|
|
|
nvm: nvmutil.c
|
|
$(CC) $(CFLAGS) nvmutil.c -o nvm
|
|
|
|
install:
|
|
$(INSTALL) nvm $(DESTDIR)$(PREFIX)/bin/nvm
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/nvm
|
|
|
|
distclean:
|
|
rm -f nvm
|
|
|
|
clean:
|
|
rm -f nvm
|