summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-08-07 01:01:13 -0500
committerCase Duckworth2022-08-07 01:01:13 -0500
commit4b6a82cb5ccfb483b95cc447e76ee675a8836e30 (patch)
treed49f0215eee604301b8e58d12c27c1e14d60939d
parent"Real" initial commit (diff)
downloadht-4b6a82cb5ccfb483b95cc447e76ee675a8836e30.tar.gz
ht-4b6a82cb5ccfb483b95cc447e76ee675a8836e30.zip
Add Makefile
-rw-r--r--Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..65e2dca --- /dev/null +++ b/Makefile
@@ -0,0 +1,35 @@
1NAME=HT
2DESC=a bespoke web publishing system
3
4DESTDIR=
5PREFIX=/usr/local
6
7BIND=$(DESTDIR)$(PREFIX)/bin
8
9.PHONY: help
10help:
11 @echo "$(NAME): $(DESC)"
12 @echo "Copyright (C) 2022 Case Duckworth <acdw@acdw.net>"
13 @echo
14 @echo "TARGETS:"
15 @echo " install Install $(NAME) to $(DESTDIR)$(PREFIX)."
16 @echo " link Install using symlinks for easier development."
17 @echo " uninstal Uninstall $(NAME) from $(DESTDIR)$(PREFIX)."
18
19$(BIND):
20 mkdir -p $@
21
22.PHONY: install
23install: ht ht.awk
24 install -t $(BIND) $?
25
26.PHONY: link
27link: $(BIND)
28 ln -sf $(PWD)/ht $(BIND)/ht
29 ln -sf $(PWD)/ht.awk $(BIND)/ht.awk
30
31.PHONY: uninstall
32uninstall:
33 rm $(BIND)/ht $(BIND)/ht.awk
34
35