diff options
author | Case Duckworth | 2022-08-13 11:27:17 -0500 |
---|---|---|
committer | Case Duckworth | 2022-08-13 11:27:17 -0500 |
commit | a253d59b39374eeb3824543324fe1de389a62f8f (patch) | |
tree | 0a9ef91d9c537219ebc95baf1d9fc2758716d683 | |
parent | Don't single-quote filenames (diff) | |
download | shatom-a253d59b39374eeb3824543324fe1de389a62f8f.tar.gz shatom-a253d59b39374eeb3824543324fe1de389a62f8f.zip |
Add Makefile
-rw-r--r-- | Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cf1e19e --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,36 @@ | |||
1 | NAME=shatom | ||
2 | DESC=shit out a feed from a directory | ||
3 | |||
4 | EXTRAS= | ||
5 | |||
6 | DESTDIR= | ||
7 | PREFIX=/usr/local | ||
8 | |||
9 | BIND=$(DESTDIR)$(PREFIX)/bin | ||
10 | |||
11 | .PHONY: help | ||
12 | help: | ||
13 | @echo "$(NAME): $(DESC)" | ||
14 | @echo "Copyright (C) 2022 Case Duckworth <acdw@acdw.net>" | ||
15 | @echo | ||
16 | @echo "TARGETS:" | ||
17 | @echo " install Install $(NAME) to $(DESTDIR)$(PREFIX)." | ||
18 | @echo " link Install using symlinks for easier development." | ||
19 | @echo " uninstal Uninstall $(NAME) from $(DESTDIR)$(PREFIX)." | ||
20 | |||
21 | $(BIND): | ||
22 | mkdir -p $@ | ||
23 | |||
24 | .PHONY: install | ||
25 | install: $(NAME) $(EXTRAS) | ||
26 | install -t $(BIND) $? | ||
27 | |||
28 | .PHONY: link | ||
29 | link: $(BIND) | ||
30 | ln -sf $(PWD)/$(NAME) $(BIND)/$(NAME) | ||
31 | |||
32 | .PHONY: uninstall | ||
33 | uninstall: | ||
34 | rm $(BIND)/$(NAME) | ||
35 | |||
36 | |||