summary refs log tree commit diff
path: root/port/ddate/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-31 14:22:25 -0500
committerJune McEnroe <june@causal.agency>2020-12-31 14:22:25 -0500
commitebb79c5ee379218c5041ed5d190cbaf419ee1a6e (patch)
tree26fb41ae1eb9fa6a42efc8b9b849b24667fe593e /port/ddate/Makefile
parentPrint octal for 8 bits in bit (diff)
downloadsrc-ebb79c5ee379218c5041ed5d190cbaf419ee1a6e.tar.gz
src-ebb79c5ee379218c5041ed5d190cbaf419ee1a6e.zip
Add ddate
I'm tired of package managers not having this!
Diffstat (limited to '')
-rw-r--r--port/ddate/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/port/ddate/Makefile b/port/ddate/Makefile
new file mode 100644
index 00000000..c1bc4553
--- /dev/null
+++ b/port/ddate/Makefile
@@ -0,0 +1,15 @@
+PREFIX ?= ~/.local
+MANDIR ?= ${PREFIX}/share/man
+
+ddate:
+
+clean:
+	rm -f ddate
+
+install: ddate ddate.1
+	install -d ${PREFIX}/bin ${MANDIR}/man1
+	install ddate ${PREFIX}/bin
+	install -m 644 ddate.1 ${MANDIR}/man1
+
+uninstall:
+	rm -f ${PREFIX}/bin/ddate ${MANDIR}/man1/ddate.1