From 0da76871ae527c6d97717c3f8359763ebe9bd329 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 16 Sep 2022 14:55:51 -0500 Subject: Initial commit --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fe6ac4b --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +# SHITE +# by C. Duckworth + +PREFIX=/usr/local +NAME=shite + +SCRIPT=$(PWD)/$(NAME) + +help: + @echo "SHITE: 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/$(NAME) + +link: $(SCRIPT) + ln -sf $< $(DESTDIR)$(PREFIX)/bin/$(NAME) + +uninstall: + -rm -f $< $(DESTDIR)$(PREFIX)/bin/$(NAME) -- cgit 1.4.1-21-gabe81