2 # This generates man-pages out of the Docbook XML files. Simply add your files
3 # to the $MANPAGES array. If aliases are created, please add them to the
4 # MANPAGES_ALIASES array so they get installed correctly.
20 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubs %.7,%.xml,$(MANPAGES)}}}}
21 EXTRA_DIST = $(XML_FILES)
22 CLEANFILES = $(MANPAGES) $(MANPAGES_ALIASES) .man_fixup
26 if HAVE_MANPAGES_STYLESHEET
28 man_MANS += $(MANPAGES) $(MANPAGES_ALIASES)
31 --stringparam man.authors.section.enabled 0 \
32 --stringparam man.copyright.section.enabled 0 \
33 --stringparam funcsynopsis.style ansi \
34 --stringparam man.output.quietly 1 \
37 XSLTPROC_PROCESS_MAN = \
38 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
39 $(XSLTPROC) -o "$@" $(XSLTPROC_FLAGS) $(MANPAGES_STYLESHEET) "$<" && \
42 # Force .man_fixup if $(MANPAGES) are not built
43 .man_fixup: | $(MANPAGES)
46 $(MANPAGES_ALIASES): $(MANPAGES) .man_fixup
47 $(AM_V_GEN)if test -n "$@" ; then $(SED) -i -e 's/^\.so \([a-z_]\+\)\.\([0-9]\)$$/\.so man\2\/\1\.\2/' "$@" ; fi
49 %.1: $(top_srcdir)/man/%.xml
50 $(XSLTPROC_PROCESS_MAN)
52 %.3: $(top_srcdir)/man/%.xml
53 $(XSLTPROC_PROCESS_MAN)
55 %.5: $(top_srcdir)/man/%.xml
56 $(XSLTPROC_PROCESS_MAN)
58 %.7: $(top_srcdir)/man/%.xml
59 $(XSLTPROC_PROCESS_MAN)
61 endif # HAVE_MANPAGES_STYLESHEET
62 endif # BUILD_MANPAGES