From ed955bad860ce30ea6f1147150ec94c3514762f9 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 13 Sep 2022 17:00:00 -0500 Subject: initial commit --- Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9f2c277 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +# FOIL +# by C. Duckworth +# 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) -- cgit 1.4.1-21-gabe81