From a9f9b352565eec79da7dcf74f48a0c1d75fcff1c Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 29 Jul 2022 15:13:03 -0500 Subject: Add README and Makefile --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1153401 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +NAME = autoshart +DESC = autostart programs without a DE +LICENSE = Good Choices + +BIND = $(DESTDIR)$(PREFIX)/bin +BIN = $(BIND)/$(NAME) + +.PHONY: help install link uninstall + +help: + @echo "$(NAME) : $(DESCRIPTION)" + @echo "(C) 2021--2022 Case Duckworth " + @echo "Licensed under the $(LICENSE) license; see COPYING for details." + @echo + @echo "TARGETS:" + @echo " install Install $(NAME) to $(BIN)." + @echo " link Install $(NAME) using symlinks." + @echo " Probably only useful for development." + @echo " uninstall Uninstall $(NAME)-related files." + +$(BIND): + mkdir -p $@ + +install: $(NAME) + install -D $< $(BIND) + +link: $(NAME) $(BIND) + ln -sf $(PWD)/$(NAME) $(BIN) + +uninstall: + rm -rf $(BIN) -- cgit 1.4.1-21-gabe81