about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorCase Duckworth2022-07-26 23:10:44 -0500
committerCase Duckworth2022-07-26 23:11:46 -0500
commitb4d834728e89beb57377fd810abf9ee8a3365d42 (patch)
treea24914900e3f039e9e1922dd89cf5b35a46877ec /Makefile
downloadshin-b4d834728e89beb57377fd810abf9ee8a3365d42.tar.gz
shin-b4d834728e89beb57377fd810abf9ee8a3365d42.zip
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a9401a1 --- /dev/null +++ b/Makefile
@@ -0,0 +1,31 @@
1NAME = shin
2DESC = Include shell scripts in other shell scripts
3
4DESTDIR =
5PREFIX = /usr/local
6
7BIN = $(DESTDIR)$(PREFIX)/bin/$(NAME)
8
9.PHONY: help
10help:
11 @echo "$(NAME) : $(DESC)"
12 @echo "(C) 2022 Case Duckworth <acdw@acdw.net>"
13 @echo "Licensed under the Fair License; see COPYING for details."
14 @echo
15 @echo "TARGETS:"
16 @echo " install Install $(NAME) to $(BIN)."
17 @echo " link Install $(NAME) using symlinks."
18 @echo " Probably only useful for development."
19 @echo " uninstall Uninstall $(NAME)-related files."
20
21.PHONY: install
22install: $(NAME)
23 install -D $< $(BIN)
24
25.PHONY: link
26link:
27 ln -sf $(PWD)/$(NAME) $(BIN)
28
29.PHONY: uninstall
30uninstall:
31 rm $(BIN)