# 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)