aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTim Allen <screwtape@froup.com>2016-05-28 17:18:36 +1000
committerTim Allen <screwtape@froup.com>2016-05-28 17:44:39 +1000
commit14f841ec25622a0c19f3547f165ea6a3ca426e4e (patch)
treeeb47ff8745ce2ac10bc624b0a79a62837bb2a8a0 /Makefile
parentf67a3577c98d38bb8fee998f3e0890650b435195 (diff)
downloadvis-14f841ec25622a0c19f3547f165ea6a3ca426e4e.tar.gz
vis-14f841ec25622a0c19f3547f165ea6a3ca426e4e.tar.xz
[vis-menu] Add a manpage.
Unlike the existing vis(1) manpage, this uses the `mdoc` macro set because it's (very slightly) more modern, and OpenBSD only supports `mdoc` while everybody else supports both.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index caa88cc..4835456 100644
--- a/Makefile
+++ b/Makefile
@@ -94,8 +94,10 @@ install: vis vis-menu
}
@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
- @sed "s/VERSION/${VERSION}/g" < vis.1 > ${DESTDIR}${MANPREFIX}/man1/vis.1
+ @sed -e "s/VERSION/${VERSION}/g" < vis.1 > ${DESTDIR}${MANPREFIX}/man1/vis.1
+ @sed -e "s/VERSION/${VERSION}/g" -e "s/MONTH DAY, YEAR/$(date +'%B %m, %Y')/g" < vis-menu.1 > ${DESTDIR}${MANPREFIX}/man1/vis-menu.1
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/vis.1
+ @chmod 644 ${DESTDIR}${MANPREFIX}/man1/vis-menu.1
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin