diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1153401 --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,31 @@ | |||
1 | NAME = autoshart | ||
2 | DESC = autostart programs without a DE | ||
3 | LICENSE = Good Choices | ||
4 | |||
5 | BIND = $(DESTDIR)$(PREFIX)/bin | ||
6 | BIN = $(BIND)/$(NAME) | ||
7 | |||
8 | .PHONY: help install link uninstall | ||
9 | |||
10 | help: | ||
11 | @echo "$(NAME) : $(DESCRIPTION)" | ||
12 | @echo "(C) 2021--2022 Case Duckworth <acdw@acdw.net>" | ||
13 | @echo "Licensed under the $(LICENSE) license; see COPYING for details." | ||
14 | @echo | ||
15 | @echo "TARGETS:" | ||
16 | @echo " install Install $(NAME) to $(BIN)." | ||
17 | @echo " link Install $(NAME) using symlinks." | ||
18 | @echo " Probably only useful for development." | ||
19 | @echo " uninstall Uninstall $(NAME)-related files." | ||
20 | |||
21 | $(BIND): | ||
22 | mkdir -p $@ | ||
23 | |||
24 | install: $(NAME) | ||
25 | install -D $< $(BIND) | ||
26 | |||
27 | link: $(NAME) $(BIND) | ||
28 | ln -sf $(PWD)/$(NAME) $(BIN) | ||
29 | |||
30 | uninstall: | ||
31 | rm -rf $(BIN) | ||