summaryrefslogtreecommitdiff
path: root/lib/libdrm/mk/man/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libdrm/mk/man/Makefile')
-rw-r--r--lib/libdrm/mk/man/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/libdrm/mk/man/Makefile b/lib/libdrm/mk/man/Makefile
new file mode 100644
index 000000000..686af489b
--- /dev/null
+++ b/lib/libdrm/mk/man/Makefile
@@ -0,0 +1,21 @@
+MDOCS= drmAvailable 3 drmHandleEvent 3 drmModeGetResources 3 \
+ drm 7 drm-kms 7 drm-memory 7
+
+beforeinstall:
+.for n s in ${MDOCS}
+ ${INSTALL} ${INSTALL_COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
+ ${.CURDIR}/${n}.${s} ${DESTDIR}${MANDIR}${s}
+.endfor
+
+# maintainer target, not used duing build or install
+mdoc:
+.for n s in ${MDOCS}
+ rst2man-3 ${DRM_SRC}/man/${n}.${s}.rst> ${.CURDIR}/${n}.${s}
+.endfor
+
+obj: _xenocara_obj
+
+.include <bsd.prog.mk>
+.include <bsd.xorg.mk>
+
+.PHONY: mdoc