diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
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 | ||
3 | PREFIX ?= /usr | 3 | PREFIX = /usr/local |
4 | 4 | ||
5 | .PHONY: def install uninstall | 5 | .PHONY: help install uninstall |
6 | 6 | ||
7 | def: | 7 | help: |
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 | ||
11 | install: licenser | 15 | install: licensor |
12 | install -D $< $(DESTDIR)$(PREFIX)/bin | 16 | install -D $< $(DESTDIR)$(PREFIX)/bin |
13 | 17 | ||
14 | uninstall: | 18 | uninstall: |
15 | rm -f $(DESTDIR)$(PREFIX)/bin/licenser | 19 | rm -f $(DESTDIR)$(PREFIX)/bin/licensor |
20 | rm -rf "${XDG_CACHE_HOME:-$HOME/.cache}/licensor" | ||