NAME=shatom DESC=shit out a feed from a directory EXTRAS= DESTDIR= PREFIX=/usr/local BIND=$(DESTDIR)$(PREFIX)/bin .PHONY: help help: @echo "$(NAME): $(DESC)" @echo "Copyright (C) 2022 Case Duckworth " @echo @echo "TARGETS:" @echo " install Install $(NAME) to $(DESTDIR)$(PREFIX)." @echo " link Install using symlinks for easier development." @echo " uninstal Uninstall $(NAME) from $(DESTDIR)$(PREFIX)." $(BIND): mkdir -p $@ .PHONY: install install: $(NAME) $(EXTRAS) install -t $(BIND) $? .PHONY: link link: $(BIND) ln -sf $(PWD)/$(NAME) $(BIND)/$(NAME) .PHONY: uninstall uninstall: rm $(BIND)/$(NAME)