about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/Makefile b/Makefile index 6f7723b..cca469c 100644 --- a/Makefile +++ b/Makefile
@@ -1,15 +1,20 @@
1# licenser 1# licenser
2 2
3PREFIX ?= /usr 3PREFIX = /usr/local
4 4
5.PHONY: def install uninstall 5.PHONY: help install uninstall
6 6
7def: 7help:
8 @echo "run 'make install' to install" 8 @echo "licensor : drop urself a license"
9 @echo "run 'make uninstall' to uninstall" 9 @echo "(C) 2021--2022 Case Duckworth <acdw@acdw.net>"
10 @echo
11 @echo "TARGETS:"
12 @echo " install Install licensor to $(DESTDIR)$(PREFIX)/bin/licensor."
13 @echo " uninstall Uninstall licensor-related files."
10 14
11install: licenser 15install: licensor
12 install -D $< $(DESTDIR)$(PREFIX)/bin 16 install -D $< $(DESTDIR)$(PREFIX)/bin
13 17
14uninstall: 18uninstall:
15 rm -f $(DESTDIR)$(PREFIX)/bin/licenser 19 rm -f $(DESTDIR)$(PREFIX)/bin/licensor
20 rm -rf "${XDG_CACHE_HOME:-$HOME/.cache}/licensor"