From a253d59b39374eeb3824543324fe1de389a62f8f Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 13 Aug 2022 11:27:17 -0500 Subject: Add Makefile --- Makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cf1e19e --- /dev/null +++ b/Makefile @@ -0,0 +1,36 @@ +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) + + -- cgit 1.4.1-21-gabe81