diff options
-rw-r--r-- | Makefile | 32 |
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 | |||
3 | NAME = thesauracles | ||
4 | |||
5 | PREFIX = /usr/local | ||
6 | BIND = $(DESTDIR)$(PREFIX)/bin | ||
7 | BIN = $(BIND)/$(NAME) | ||
8 | |||
9 | .PHONY: help install link uninstall | ||
10 | |||
11 | help: | ||
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 | |||
25 | install: $(NAME) | ||
26 | install -D $< $(BIND) | ||
27 | |||
28 | link: $(NAME) $(BIND) | ||
29 | ln -sf $(PWD)/$(NAME) $(BIN) | ||
30 | |||
31 | uninstall: | ||
32 | rm -f $(BIN) | ||