diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
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 | |||
4 | PREFIX=/usr/local | ||
5 | NAME=shite | ||
6 | |||
7 | SCRIPT=$(PWD)/$(NAME) | ||
8 | |||
9 | help: | ||
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 | |||
16 | install: $(SCRIPT) | ||
17 | install -D $< $(DESTDIR)$(PREFIX)/bin/$(NAME) | ||
18 | |||
19 | link: $(SCRIPT) | ||
20 | ln -sf $< $(DESTDIR)$(PREFIX)/bin/$(NAME) | ||
21 | |||
22 | uninstall: | ||
23 | -rm -f $< $(DESTDIR)$(PREFIX)/bin/$(NAME) | ||