# SPDX-License-Identifier: MIT # SPDX-FileCopyrightText: 2022,2026 Leah Rowe # SPDX-FileCopyrightText: 2023 Riku Viitanen CC?=cc CFLAGS?=-Os -Wall -Wextra -Werror -pedantic DESTDIR?= PREFIX?=/usr/local INSTALL?=install # nvm is the old binary name, # but it was renamed to nvmutil # to avoid conflict with a certain # package manager by that name! nvm: nvmutil.c rm -f nvm $(CC) $(CFLAGS) nvmutil.c -o nvmutil install: $(INSTALL) nvmutil $(DESTDIR)$(PREFIX)/bin/nvmutil # do not delete *bin/nvm because # there is a package manager by # that name. this makefile now # treats nvmutil as the binary uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/nvmutil distclean: rm -f nvm nvmutil clean: rm -f nvm nvmutil