summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2023-03-06 14:07:10 -0600
committerCase Duckworth2023-03-06 14:07:10 -0600
commit9e828c8fdb8ba80f880d047e5a050cdd59f638bc (patch)
treede40bbf8a350d0db29c02c201370f544454ec46b
parentFix mention printing (diff)
downloadtwerk-9e828c8fdb8ba80f880d047e5a050cdd59f638bc.tar.gz
twerk-9e828c8fdb8ba80f880d047e5a050cdd59f638bc.zip
Add Makefile and COPYING HEAD main
-rw-r--r--COPYING3
-rw-r--r--Makefile35
2 files changed, 38 insertions, 0 deletions
diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..e52cf0d --- /dev/null +++ b/COPYING
@@ -0,0 +1,3 @@
1Copyright (C) Case Duckworth <acdw@acdw.net>
2
3Do what you want but don't come crying to me. \ No newline at end of file
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..faad9a0 --- /dev/null +++ b/Makefile
@@ -0,0 +1,35 @@
1# twerk
2# by Case Duckworth <acdw@acdw.net>
3
4NAME = twerk
5DESC = twtxt client in POSIX tools
6LICENSE = twerk
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)