blob: 9f2c277800fee1143305c5b6d1f7b7c32e91d36c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# FOIL
# by C. Duckworth <acdw@acdw.net>
# This program is free software;
# you can use it as you see fit,
# but don't hold me responsible.
PREFIX=/usr/local
SCRIPT=$(PWD)/foil.sh
COPYCMD=yoink
PASTECMD=yeet
help:
@echo "FOIL: by C. Duckworth"
@echo "Makefile targets:"
@echo "install: install to $(DESTDIR)$(PREFIX)."
@echo "link: symlink to $(DESTDIR)$(PREFIX)."
@echo "uninstall: remove from $(DESTDIR)$(PREFIX)"
install: $(SCRIPT)
install -D $< $(DESTDIR)$(PREFIX)/bin/$(COPYCMD)
install -D $< $(DESTDIR)$(PREFIX)/bin/$(PASTECMD)
link: $(SCRIPT)
ln -sf $< $(DESTDIR)$(PREFIX)/bin/$(COPYCMD)
ln -sf $< $(DESTDIR)$(PREFIX)/bin/$(PASTECMD)
uninstall:
-rm -f $< $(DESTDIR)$(PREFIX)/bin/$(COPYCMD)
-rm -f $< $(DESTDIR)$(PREFIX)/bin/$(PASTECMD)
|