summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorCase Duckworth2022-07-10 18:31:23 -0500
committerCase Duckworth2022-07-10 18:31:23 -0500
commit783d1e8114691c9f42a8b98459a7ccb02ce5c476 (patch)
tree59b74c3c109490813419c9ad3110c24ad18826d7 /Makefile
parentAdd commentary (diff)
downloadthesauracles-783d1e8114691c9f42a8b98459a7ccb02ce5c476.tar.gz
thesauracles-783d1e8114691c9f42a8b98459a7ccb02ce5c476.zip
Add makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1c67565 --- /dev/null +++ b/Makefile
@@ -0,0 +1,32 @@
1# Thesauracles
2
3NAME = thesauracles
4
5PREFIX = /usr/local
6BIND = $(DESTDIR)$(PREFIX)/bin
7BIN = $(BIND)/$(NAME)
8
9.PHONY: help install link uninstall
10
11help:
12 @echo "$(NAME) : the wise sage of synonyms"
13 @echo "(C) 2022 Case Duckworth <acdw@acdw.net>"
14 @echo "Licensed under the Fair license; see COPYING for details."
15 @echo
16 @echo "TARGETS:"
17 @echo " install Install $(NAME) to $(BIN)."
18 @echo " link Install $(NAME) using symlinks."
19 @echo " Probably only useful for development."
20 @echo " uninstall Uninstall $(NAME)-related files."
21
22$(BIND):
23 mkdir -p $@
24
25install: $(NAME)
26 install -D $< $(BIND)
27
28link: $(NAME) $(BIND)
29 ln -sf $(PWD)/$(NAME) $(BIN)
30
31uninstall:
32 rm -f $(BIN)