From 34d12e40f1d5e096b3657f9d4868effc913d5d21 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 8 Feb 2023 21:13:02 -0600 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..1d3ce6e --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +# misc +# by Case Duckworth + +NAME = misc +DESC = Manually Install or Source Compile ... a program +LICENSE = ISC + +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