From b4d834728e89beb57377fd810abf9ee8a3365d42 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 26 Jul 2022 23:10:44 -0500 Subject: Initial commit --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a9401a1 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +NAME = shin +DESC = Include shell scripts in other shell scripts + +DESTDIR = +PREFIX = /usr/local + +BIN = $(DESTDIR)$(PREFIX)/bin/$(NAME) + +.PHONY: help +help: + @echo "$(NAME) : $(DESC)" + @echo "(C) 2022 Case Duckworth " + @echo "Licensed under the Fair 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." + +.PHONY: install +install: $(NAME) + install -D $< $(BIN) + +.PHONY: link +link: + ln -sf $(PWD)/$(NAME) $(BIN) + +.PHONY: uninstall +uninstall: + rm $(BIN) -- cgit 1.4.1-21-gabe81