From 4b6a82cb5ccfb483b95cc447e76ee675a8836e30 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 7 Aug 2022 01:01:13 -0500 Subject: Add Makefile --- Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..65e2dca --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +NAME=HT +DESC=a bespoke web publishing system + +DESTDIR= +PREFIX=/usr/local + +BIND=$(DESTDIR)$(PREFIX)/bin + +.PHONY: help +help: + @echo "$(NAME): $(DESC)" + @echo "Copyright (C) 2022 Case Duckworth " + @echo + @echo "TARGETS:" + @echo " install Install $(NAME) to $(DESTDIR)$(PREFIX)." + @echo " link Install using symlinks for easier development." + @echo " uninstal Uninstall $(NAME) from $(DESTDIR)$(PREFIX)." + +$(BIND): + mkdir -p $@ + +.PHONY: install +install: ht ht.awk + install -t $(BIND) $? + +.PHONY: link +link: $(BIND) + ln -sf $(PWD)/ht $(BIND)/ht + ln -sf $(PWD)/ht.awk $(BIND)/ht.awk + +.PHONY: uninstall +uninstall: + rm $(BIND)/ht $(BIND)/ht.awk + + -- cgit 1.4.1-21-gabe81