From 9e828c8fdb8ba80f880d047e5a050cdd59f638bc Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 6 Mar 2023 14:07:10 -0600 Subject: Add Makefile and COPYING --- 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..faad9a0 --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +# twerk +# by Case Duckworth + +NAME = twerk +DESC = twtxt client in POSIX tools +LICENSE = twerk + +PREFIX = /usr/local +BIND = $(DESTDIR)($PREFIX)/bin +BIN = $(BIND)/$(NAME) + +.PHONY: help install link uninstall + +help: + @echo "$(NAME) : $(DESC)" + @echo "(C) 2023 Case Duckworth " + @echo "Licensed under the $(LICENSE) license; see COPYING for details." + @echo + @echo "TARGETS:" + @echo " install Install $(NAME) to $(BIN)." + @echo " link Install $(NAME) using symlinks." + @echo " Probably only useful for development." + @echo " uninstall Uninstall $(NAME)-related files." + +$(BIND): + mkdir -p $@ + +install: $(NAME) + install -D $< $(BIND) + +link: $(NAME) $(BIND) + ln -sf $(PWD)/$(NAME) $(BIN) + +uninistall: + rm -f $(BIN) -- cgit 1.4.1-21-gabe81