diff options
Diffstat (limited to 'usr/src/man')
-rw-r--r-- | usr/src/man/Makefile | 1 | ||||
-rw-r--r-- | usr/src/man/Makefile.man | 16 | ||||
-rw-r--r-- | usr/src/man/man3/Makefile | 37 | ||||
-rw-r--r-- | usr/src/man/man7/Makefile | 28 |
4 files changed, 78 insertions, 4 deletions
diff --git a/usr/src/man/Makefile b/usr/src/man/Makefile index 4274db9..74517d3 100644 --- a/usr/src/man/Makefile +++ b/usr/src/man/Makefile @@ -14,6 +14,7 @@ # SUBDIRS= man1 \ + man3 \ man3x \ man7 \ man7d \ diff --git a/usr/src/man/Makefile.man b/usr/src/man/Makefile.man index 1b26bf0..b1661a4 100644 --- a/usr/src/man/Makefile.man +++ b/usr/src/man/Makefile.man @@ -19,6 +19,20 @@ ROOTMAN= $(ROOT)/usr/share/man ROOTHASMAN= $(ROOT)/usr/has/man FILEMODE= 0444 +# or: http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl +MANPAGES_STYLESHEET = /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl + +XSLTPROC_FLAGS = \ + --stringparam man.authors.section.enabled 0 \ + --stringparam man.copyright.section.enabled 0 \ + --stringparam funcsynopsis.style ansi \ + --stringparam man.output.quietly 1 \ + --nonet \ + $(MANPAGES_STYLESHEET) + +XSLTPROC_PROCESS_MAN = \ + $(XSLTPROC) -o "$@" $(XSLTPROC_FLAGS) "$<" + # The manual section being built, client Makefiles must set this to, for e.g. # "3perl", with case matching that of the section name as installed. # @@ -55,7 +69,7 @@ check: $(MANCHECKS) clean: clobber: - $(RM) $(MANLINKS) + $(RM) $(MANLINKS) $(CLOBBERFILES) .PARALLEL: diff --git a/usr/src/man/man3/Makefile b/usr/src/man/man3/Makefile new file mode 100644 index 0000000..1575dd6 --- /dev/null +++ b/usr/src/man/man3/Makefile @@ -0,0 +1,37 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet +# at http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2011, Richard Lowe +# + +include $(SRC)/Makefile.master + +MANSECT= 3 + +# generated man pages +GENMAN= \ + drmAvailable.3 \ + drmHandleEvent.3 \ + drmModeGetResources.3 + +MANFILES= $(GENMAN) +MANLINKS= + +.KEEP_STATE: + +include $(SRC)/man/Makefile.man +include $(SRC)/common/libdrm/Makefile.drm + +install: $(ROOTMANFILES) $(ROOTMANLINKS) + +$(ROOTMAN)/man3/%.3 : $(LIBDRM_CMN_DIR)/man/%.xml + $(XSLTPROC_PROCESS_MAN) diff --git a/usr/src/man/man7/Makefile b/usr/src/man/man7/Makefile index 6ba1f78..48ac28e 100644 --- a/usr/src/man/man7/Makefile +++ b/usr/src/man/man7/Makefile @@ -17,12 +17,34 @@ include $(SRC)/Makefile.master MANSECT= 7 -MANFILES= foo.7 - +# generated man pages +GENMANS= \ + drm.7 \ + drm-kms.7 \ + drm-memory.7 + +LINKSRC= drm-memory.7 +GENLINKS= \ + drm-mm.7 \ + drm-gem.7 \ + drm-ttm.7 + +MANFILES= foo.7 \ + $(GENMANS) MANLINKS= .KEEP_STATE: include $(SRC)/man/Makefile.man +include $(SRC)/common/libdrm/Makefile.drm + +ROOTGENLINKS= $(GENLINKS:%=$(ROOTMAN)/man$(MANSECT)/%) + +install: $(ROOTMANFILES) $(ROOTMANLINKS) $(ROOTGENLINKS) + +$(ROOTMAN)/man7/%.7 : $(LIBDRM_CMN_DIR)/man/%.xml + $(XSLTPROC_PROCESS_MAN) + -install: $(ROOTMANFILES) $(ROOTMANLINKS) +$(ROOTGENLINKS): + $(RM) $@; $(SYMLINK) $(LINKSRC) $@ |