about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fe6ac4b --- /dev/null +++ b/Makefile
@@ -0,0 +1,23 @@
1# SHITE
2# by C. Duckworth <acdw@acdw.net>
3
4PREFIX=/usr/local
5NAME=shite
6
7SCRIPT=$(PWD)/$(NAME)
8
9help:
10 @echo "SHITE: by C. Duckworth"
11 @echo "Makefile targets:"
12 @echo "install: install to $(DESTDIR)$(PREFIX)."
13 @echo "link: symlink to $(DESTDIR)$(PREFIX)."
14 @echo "uninstall: remove from $(DESTDIR)$(PREFIX)"
15
16install: $(SCRIPT)
17 install -D $< $(DESTDIR)$(PREFIX)/bin/$(NAME)
18
19link: $(SCRIPT)
20 ln -sf $< $(DESTDIR)$(PREFIX)/bin/$(NAME)
21
22uninstall:
23 -rm -f $< $(DESTDIR)$(PREFIX)/bin/$(NAME)