diff options
author | Case Duckworth | 2023-03-06 14:07:10 -0600 |
---|---|---|
committer | Case Duckworth | 2023-03-06 14:07:10 -0600 |
commit | 9e828c8fdb8ba80f880d047e5a050cdd59f638bc (patch) | |
tree | de40bbf8a350d0db29c02c201370f544454ec46b /Makefile | |
parent | Fix mention printing (diff) | |
download | twerk-main.tar.gz twerk-main.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..faad9a0 --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,35 @@ | |||
1 | # twerk | ||
2 | # by Case Duckworth <acdw@acdw.net> | ||
3 | |||
4 | NAME = twerk | ||
5 | DESC = twtxt client in POSIX tools | ||
6 | LICENSE = twerk | ||
7 | |||
8 | PREFIX = /usr/local | ||
9 | BIND = $(DESTDIR)($PREFIX)/bin | ||
10 | BIN = $(BIND)/$(NAME) | ||
11 | |||
12 | .PHONY: help install link uninstall | ||
13 | |||
14 | help: | ||
15 | @echo "$(NAME) : $(DESC)" | ||
16 | @echo "(C) 2023 Case Duckworth <acdw@acdw.net>" | ||
17 | @echo "Licensed under the $(LICENSE) license; see COPYING for details." | ||
18 | @echo | ||
19 | @echo "TARGETS:" | ||
20 | @echo " install Install $(NAME) to $(BIN)." | ||
21 | @echo " link Install $(NAME) using symlinks." | ||
22 | @echo " Probably only useful for development." | ||
23 | @echo " uninstall Uninstall $(NAME)-related files." | ||
24 | |||
25 | $(BIND): | ||
26 | mkdir -p $@ | ||
27 | |||
28 | install: $(NAME) | ||
29 | install -D $< $(BIND) | ||
30 | |||
31 | link: $(NAME) $(BIND) | ||
32 | ln -sf $(PWD)/$(NAME) $(BIN) | ||
33 | |||
34 | uninistall: | ||
35 | rm -f $(BIN) | ||