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
commit88fdbb28f59376eeabf0eb8e2f59ec45e7c19347 (patch)
tree58b9e61095e46e455e57630b7d78d7ad4baf2de0 /port/ddate/Makefile
parentPrint octal for 8 bits in bit (diff)
downloadsrc-88fdbb28f59376eeabf0eb8e2f59ec45e7c19347.tar.gz
src-88fdbb28f59376eeabf0eb8e2f59ec45e7c19347.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