about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2023-02-08 21:13:02 -0600
committerCase Duckworth2023-02-08 21:13:02 -0600
commit34d12e40f1d5e096b3657f9d4868effc913d5d21 (patch)
treebd4d76ba4df0787367e2d26a78d4c6fc63257b47
parentUpdate README (diff)
downloadmisc-34d12e40f1d5e096b3657f9d4868effc913d5d21.tar.gz
misc-34d12e40f1d5e096b3657f9d4868effc913d5d21.zip
Add Makefile
-rw-r--r--Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1d3ce6e --- /dev/null +++ b/Makefile
@@ -0,0 +1,35 @@
1# misc
2# by Case Duckworth <acdw@acdw.net>
3
4NAME = misc
5DESC = Manually Install or Source Compile ... a program
6LICENSE = ISC
7
8PREFIX = /usr/local
9BIND = $(DESTDIR)$(PREFIX)/bin
10BIN = $(BIND)/$(NAME)
11
12.PHONY: help install link uninstall
13
14help:
15 @echo "$(NAME) : $(DESC)"
16 @echo "(C) 2023 Case Duckworth <acdw@acdw.net>"
17 @echo "Licensed under the $(LICENSE) license; see COPYING for details."
18 @echo
19 @echo "TARGETS:"
20 @echo " install Install $(NAME) to $(BIN)."
21 @echo " link Install $(NAME) using symlinks."
22 @echo " Probably only useful for development."
23 @echo " uninstall Uninstall $(NAME)-related files."
24
25$(BIND):
26 mkdir -p $@
27
28install: $(NAME)
29 install -D $< $(BIND)
30
31link: $(NAME) $(BIND)
32 ln -sf $(PWD)/$(NAME) $(BIN)
33
34uninistall:
35 rm -f $(BIN)