about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-07-07 21:21:19 -0500
committerCase Duckworth2022-07-07 21:21:19 -0500
commitb96c8f61c877871551aae2c5613a2404210ea99e (patch)
treea265f9af1446742a99d7dbb4b08004c8f21e37cf
parentIgnore licensor-ignore.awk (diff)
downloadlicensor-b96c8f61c877871551aae2c5613a2404210ea99e.tar.gz
licensor-b96c8f61c877871551aae2c5613a2404210ea99e.zip
Update Makefile
-rw-r--r--Makefile31
1 files changed, 22 insertions, 9 deletions
diff --git a/Makefile b/Makefile index cca469c..1b9d287 100644 --- a/Makefile +++ b/Makefile
@@ -1,20 +1,33 @@
1# licenser 1# Licensor
2
3NAME = licensor
2 4
3PREFIX = /usr/local 5PREFIX = /usr/local
6BIND = $(DESTDIR)$(PREFIX)/bin
7BIN = $(BIND)/$(NAME)
4 8
5.PHONY: help install uninstall 9.PHONY: help install link uninstall
6 10
7help: 11help:
8 @echo "licensor : drop urself a license" 12 @echo "$(NAME) : drop urself a license"
9 @echo "(C) 2021--2022 Case Duckworth <acdw@acdw.net>" 13 @echo "(C) 2021--2022 Case Duckworth <acdw@acdw.net>"
14 @echo "Licensed under the MIT license; see COPYING for details."
10 @echo 15 @echo
11 @echo "TARGETS:" 16 @echo "TARGETS:"
12 @echo " install Install licensor to $(DESTDIR)$(PREFIX)/bin/licensor." 17 @echo " install Install $(NAME) to $(BIN)."
13 @echo " uninstall Uninstall licensor-related files." 18 @echo " link Install $(NAME) using symlinks."
19 @echo " Probably only useful for development."
20 @echo " uninstall Uninstall $(NAME)-related files."
21
22$(BIND):
23 mkdir -p $@
24
25install: $(NAME)
26 install -D $< $(BIND)
14 27
15install: licensor 28link: $(NAME) $(BIND)
16 install -D $< $(DESTDIR)$(PREFIX)/bin 29 ln -sf $(PWD)/$(NAME) $(BIN)
17 30
18uninstall: 31uninstall:
19 rm -f $(DESTDIR)$(PREFIX)/bin/licensor 32 rm -f $(BIN)
20 rm -rf "${XDG_CACHE_HOME:-$HOME/.cache}/licensor" 33 rm -rf "$${XDG_CACHE_HOME:-$HOME/.cache}/licensor"