diff options
author | Case Duckworth | 2023-02-08 21:13:02 -0600 |
---|---|---|
committer | Case Duckworth | 2023-02-08 21:13:02 -0600 |
commit | 34d12e40f1d5e096b3657f9d4868effc913d5d21 (patch) | |
tree | bd4d76ba4df0787367e2d26a78d4c6fc63257b47 /Makefile | |
parent | Update README (diff) | |
download | misc-34d12e40f1d5e096b3657f9d4868effc913d5d21.tar.gz misc-34d12e40f1d5e096b3657f9d4868effc913d5d21.zip |
Add Makefile
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..1d3ce6e --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,35 @@ | |||
1 | # misc | ||
2 | # by Case Duckworth <acdw@acdw.net> | ||
3 | |||
4 | NAME = misc | ||
5 | DESC = Manually Install or Source Compile ... a program | ||
6 | LICENSE = ISC | ||
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) | ||