Files
lbmk/util/nvmutil/Makefile
T
Leah Rowe 3f85ae5f85 util/nvmutil: Set CC and CFLAGS only if unset
We don't want to clobber anything that the user set themselves.

Instead, we should respect the user's choice.

Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-01-03 01:48:52 +00:00

23 lines
415 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
PREFIX?=/usr/bin
nvm: nvmutil.c
$(CC) $(CFLAGS) nvmutil.c -o nvm
install: nvm
install nvm $(PREFIX)/nvm
uninstall: clean
rm -f $(PREFIX)/nvm
distclean:
rm -f nvm
clean:
rm -f nvm