diff options
author | Case Duckworth | 2022-09-13 17:00:00 -0500 |
---|---|---|
committer | Case Duckworth | 2022-09-13 17:00:00 -0500 |
commit | ed955bad860ce30ea6f1147150ec94c3514762f9 (patch) | |
tree | f7a6120a01e938d7470faa20c4e07b283b413208 /Makefile | |
download | foil-ed955bad860ce30ea6f1147150ec94c3514762f9.tar.gz foil-ed955bad860ce30ea6f1147150ec94c3514762f9.zip |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
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 | |||
7 | PREFIX=/usr/local | ||
8 | SCRIPT=$(PWD)/foil.sh | ||
9 | |||
10 | COPYCMD=yoink | ||
11 | PASTECMD=yeet | ||
12 | |||
13 | help: | ||
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 | |||
20 | install: $(SCRIPT) | ||
21 | install -D $< $(DESTDIR)$(PREFIX)/bin/$(COPYCMD) | ||
22 | install -D $< $(DESTDIR)$(PREFIX)/bin/$(PASTECMD) | ||
23 | |||
24 | link: $(SCRIPT) | ||
25 | ln -sf $< $(DESTDIR)$(PREFIX)/bin/$(COPYCMD) | ||
26 | ln -sf $< $(DESTDIR)$(PREFIX)/bin/$(PASTECMD) | ||
27 | |||
28 | uninstall: | ||
29 | -rm -f $< $(DESTDIR)$(PREFIX)/bin/$(COPYCMD) | ||
30 | -rm -f $< $(DESTDIR)$(PREFIX)/bin/$(PASTECMD) | ||