• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# This generates man-pages out of the Docbook XML files. Simply add your files
3# to the relevant *man_PRE array. If aliases are created, please add them to the
4# *man_aliases_PRE array so they get installed correctly.
5#
6
7libman_PRE = \
8	drmAvailable.xml \
9	drmHandleEvent.xml \
10	drmModeGetResources.xml
11
12miscman_PRE = \
13	drm.xml \
14	drm-kms.xml \
15	drm-memory.xml
16
17miscman_aliases_PRE = \
18	drm-mm.xml \
19	drm-gem.xml \
20	drm-ttm.xml
21
22libmandir = $(LIB_MAN_DIR)
23miscmandir = $(MISC_MAN_DIR)
24miscman_aliasesdir = $(MISC_MAN_DIR)
25
26libman_DATA = $(libman_PRE:.xml=.$(LIB_MAN_SUFFIX))
27miscman_DATA = $(miscman_PRE:.xml=.$(MISC_MAN_SUFFIX))
28miscman_aliases_DATA = $(miscman_aliases_PRE:.xml=.$(MISC_MAN_SUFFIX))
29
30XML_FILES = \
31	$(libman_PRE) \
32	$(miscman_PRE)
33
34MAN_FILES = \
35	$(libman_DATA) \
36	$(miscman_DATA) \
37	$(miscman_aliases_DATA)
38
39EXTRA_DIST = $(XML_FILES)
40CLEANFILES = $(MAN_FILES)
41
42XSLTPROC_FLAGS = \
43	--stringparam man.authors.section.enabled 0 \
44	--stringparam man.copyright.section.enabled 0 \
45	--stringparam funcsynopsis.style ansi \
46	--stringparam man.output.quietly 1 \
47	--nonet \
48	$(MANPAGES_STYLESHEET)
49
50XSLTPROC_PROCESS_MAN = \
51	$(AM_V_GEN)$(XSLTPROC) -o "$@" $(XSLTPROC_FLAGS) "$<"
52
53$(miscman_aliases_DATA): $(miscman_DATA)
54	$(AM_V_GEN)if test -n "$@" ; then $(SED) -i -e 's/^\.so \([a-z_]\+\)\.\([0-9]\)$$/\.so man\2\/\1\.\2/' "$@" ; fi
55
56SUFFIXES = .$(LIB_MAN_SUFFIX) .$(MISC_MAN_SUFFIX) .xml
57
58.xml.$(LIB_MAN_SUFFIX):
59	$(XSLTPROC_PROCESS_MAN)
60
61.xml.$(MISC_MAN_SUFFIX):
62	$(XSLTPROC_PROCESS_MAN)
63