about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorCase Duckworth2022-08-13 11:27:17 -0500
committerCase Duckworth2022-08-13 11:27:17 -0500
commita253d59b39374eeb3824543324fe1de389a62f8f (patch)
tree0a9ef91d9c537219ebc95baf1d9fc2758716d683 /Makefile
parentDon't single-quote filenames (diff)
downloadshatom-a253d59b39374eeb3824543324fe1de389a62f8f.tar.gz
shatom-a253d59b39374eeb3824543324fe1de389a62f8f.zip
Add Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
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 @@
1NAME=shatom
2DESC=shit out a feed from a directory
3
4EXTRAS=
5
6DESTDIR=
7PREFIX=/usr/local
8
9BIND=$(DESTDIR)$(PREFIX)/bin
10
11.PHONY: help
12help:
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
25install: $(NAME) $(EXTRAS)
26 install -t $(BIND) $?
27
28.PHONY: link
29link: $(BIND)
30 ln -sf $(PWD)/$(NAME) $(BIND)/$(NAME)
31
32.PHONY: uninstall
33uninstall:
34 rm $(BIND)/$(NAME)
35
36