Makefile 465 B

12345678910111213141516171819202122232425
  1. # SPDX-License-Identifier: MIT
  2. # SPDX-FileCopyrightText: 2022,2025 Leah Rowe <leah@libreboot.org>
  3. # SPDX-FileCopyrightText: 2023 Riku Viitanen <riku.viitanen@protonmail.com>
  4. CC?=cc
  5. CFLAGS?=-Os -Wall -Wextra -Werror -pedantic
  6. DESTDIR?=
  7. PREFIX?=/usr/local
  8. INSTALL?=install
  9. nvm: nvmutil.c
  10. $(CC) $(CFLAGS) nvmutil.c -o nvm
  11. install:
  12. $(INSTALL) nvm $(DESTDIR)$(PREFIX)/bin/nvm
  13. uninstall:
  14. rm -f $(DESTDIR)$(PREFIX)/bin/nvm
  15. distclean:
  16. rm -f nvm
  17. clean:
  18. rm -f nvm