summaryrefslogtreecommitdiff
path: root/util/nvmutil/Makefile
blob: b8ec2ad395e9c9879c938273db737a3fe1f84ef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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