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 --- COPYING | 3 +++ Makefile | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 COPYING create mode 100644 Makefile diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..e52cf0d --- /dev/null +++ b/COPYING @@ -0,0 +1,3 @@ +Copyright (C) Case Duckworth + +Do what you want but don't come crying to me. \ No newline at end of file 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