about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9f2c277 --- /dev/null +++ b/Makefile
@@ -0,0 +1,30 @@
1# FOIL
2# by C. Duckworth <acdw@acdw.net>
3# This program is free software;
4# you can use it as you see fit,
5# but don't hold me responsible.
6
7PREFIX=/usr/local
8SCRIPT=$(PWD)/foil.sh
9
10COPYCMD=yoink
11PASTECMD=yeet
12
13help:
14 @echo "FOIL: by C. Duckworth"
15 @echo "Makefile targets:"
16 @echo "install: install to $(DESTDIR)$(PREFIX)."
17 @echo "link: symlink to $(DESTDIR)$(PREFIX)."
18 @echo "uninstall: remove from $(DESTDIR)$(PREFIX)"
19
20install: $(SCRIPT)
21 install -D $< $(DESTDIR)$(PREFIX)/bin/$(COPYCMD)
22 install -D $< $(DESTDIR)$(PREFIX)/bin/$(PASTECMD)
23
24link: $(SCRIPT)
25 ln -sf $< $(DESTDIR)$(PREFIX)/bin/$(COPYCMD)
26 ln -sf $< $(DESTDIR)$(PREFIX)/bin/$(PASTECMD)
27
28uninstall:
29 -rm -f $< $(DESTDIR)$(PREFIX)/bin/$(COPYCMD)
30 -rm -f $< $(DESTDIR)$(PREFIX)/bin/$(PASTECMD)