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)