From 783d1e8114691c9f42a8b98459a7ccb02ce5c476 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 10 Jul 2022 18:31:23 -0500 Subject: Add makefile --- Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1c67565 --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +# Thesauracles + +NAME = thesauracles + +PREFIX = /usr/local +BIND = $(DESTDIR)$(PREFIX)/bin +BIN = $(BIND)/$(NAME) + +.PHONY: help install link uninstall + +help: + @echo "$(NAME) : the wise sage of synonyms" + @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." + +$(BIND): + mkdir -p $@ + +install: $(NAME) + install -D $< $(BIND) + +link: $(NAME) $(BIND) + ln -sf $(PWD)/$(NAME) $(BIN) + +uninstall: + rm -f $(BIN) -- cgit 1.4.1-21-gabe81