diff options
author | Case Duckworth | 2022-07-10 18:31:23 -0500 |
---|---|---|
committer | Case Duckworth | 2022-07-10 18:31:23 -0500 |
commit | 783d1e8114691c9f42a8b98459a7ccb02ce5c476 (patch) | |
tree | 59b74c3c109490813419c9ad3110c24ad18826d7 /Makefile | |
parent | Add commentary (diff) | |
download | thesauracles-783d1e8114691c9f42a8b98459a7ccb02ce5c476.tar.gz thesauracles-783d1e8114691c9f42a8b98459a7ccb02ce5c476.zip |
Add makefile
Diffstat (limited to 'Makefile')
-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) | ||