summaryrefslogtreecommitdiff
path: root/doc/xorg-docs/Makefile.bsd-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'doc/xorg-docs/Makefile.bsd-wrapper')
-rw-r--r--doc/xorg-docs/Makefile.bsd-wrapper21
1 files changed, 20 insertions, 1 deletions
diff --git a/doc/xorg-docs/Makefile.bsd-wrapper b/doc/xorg-docs/Makefile.bsd-wrapper
index c31becb15..3bf1dd5d8 100644
--- a/doc/xorg-docs/Makefile.bsd-wrapper
+++ b/doc/xorg-docs/Makefile.bsd-wrapper
@@ -1,5 +1,24 @@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.2 2012/03/10 18:41:37 matthieu Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.3 2019/04/30 21:37:43 schwarze Exp $
CONFIGURE_ARGS += --without-fop --without-xmlto
+MDOCS = general/fonts/fonts
+
+beforeinstall:
+.for n in ${MDOCS}
+ ${INSTALL} ${INSTALL_COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
+ ${.CURDIR}/${n}.7 ${MANDIR}7
+.endfor
+
+# maintainer target, not used duing build or install
+mdoc:
+.for n in ${MDOCS}
+ { \
+ echo ".\\\" automatically generated with"; \
+ echo ".\\\" docbook2mdoc ${n:T}.xml > ${n:T}.7"; \
+ docbook2mdoc ${.CURDIR}/${n}.xml; \
+ } > ${.CURDIR}/${n}.7
+ sed -i 's/^\.Dt ${n:T:U} 1$$/.Dt ${n:T:U} 7/' ${.CURDIR}/${n}.7
+.endfor
+
.include <bsd.xorg.mk>