diff options
author | Case Duckworth | 2022-09-16 14:55:51 -0500 |
---|---|---|
committer | Case Duckworth | 2022-09-16 14:55:51 -0500 |
commit | 0da76871ae527c6d97717c3f8359763ebe9bd329 (patch) | |
tree | b2513eec64426b7ea412ffbda9695eb62fb51f71 /Makefile | |
download | shite-0da76871ae527c6d97717c3f8359763ebe9bd329.tar.gz shite-0da76871ae527c6d97717c3f8359763ebe9bd329.zip |
Initial commit
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) | ||