From 71386a596dba6b1e98d2ae4ca6e340ba36ffad39 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 10 Feb 2023 22:55:24 -0600 Subject: Add example installation to Makefile --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1d3ce6e..f3c85eb 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,10 @@ PREFIX = /usr/local BIND = $(DESTDIR)$(PREFIX)/bin BIN = $(BIND)/$(NAME) -.PHONY: help install link uninstall +EX_SRC = $(PWD)/examples +EX_DST = $(XDG_CONFIG_HOME)/$(NAME) + +.PHONY: help install link uninstall examples link_examples help: @echo "$(NAME) : $(DESC)" @@ -20,6 +23,8 @@ help: @echo " install Install $(NAME) to $(BIN)." @echo " link Install $(NAME) using symlinks." @echo " Probably only useful for development." + @echo " examples Install plans in $(EX_SRC) to $(EX_DST)." + @echo " link_examples Install example plans using symlinks." @echo " uninstall Uninstall $(NAME)-related files." $(BIND): @@ -33,3 +38,9 @@ link: $(NAME) $(BIND) uninistall: rm -f $(BIN) + +examples: $(EX_SRC) + install -t $(EX_DST) $