diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2012-11-18 17:17:35 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2012-11-18 17:17:35 -0500 |
commit | d68f6556449d3533bf368baa8631fbbcef125133 (patch) | |
tree | f7a3758f83fa68ee3ed2dbc6768a5b89d5714c8f | |
parent | d4efe353dae3cb80f2ffdd736d68d90d3a4c7ce6 (diff) |
Fix manpage build
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | docs/gudev/version.xml | 1 | ||||
-rw-r--r-- | docs/libudev/version.xml | 1 | ||||
-rw-r--r-- | man/Makefile.am | 30 |
4 files changed, 35 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 7ad8ec07ac..1b30e1e38b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,5 +7,9 @@ SUBDIRS = \ keymaps \ keymaps-force-release \ docs \ - man \ test + +if ENABLE_MANPAGES +SUBDIRS += \ + man +endif diff --git a/docs/gudev/version.xml b/docs/gudev/version.xml deleted file mode 100644 index 49d59571fb..0000000000 --- a/docs/gudev/version.xml +++ /dev/null @@ -1 +0,0 @@ -0.1 diff --git a/docs/libudev/version.xml b/docs/libudev/version.xml deleted file mode 100644 index 49d59571fb..0000000000 --- a/docs/libudev/version.xml +++ /dev/null @@ -1 +0,0 @@ -0.1 diff --git a/man/Makefile.am b/man/Makefile.am index fd9bacf4cf..a328876f25 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -3,3 +3,33 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} MANPAGES = \ udev.7 \ udevadm.8 + +XML_FILES = \ + ${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}} + +XSLTPROC_FLAGS = \ + --nonet \ + --stringparam man.output.quietly 1 \ + --stringparam funcsynopsis.style ansi \ + --stringparam man.th.extra1.suppress 1 \ + --stringparam man.authors.section.enabled 0 \ + --stringparam man.copyright.section.enabled 0 + +man_MANS = \ + $(MANPAGES) + +noinst_DATA = \ + $(XML_FILES) + +CLEANFILES = \ + $(MANPAGES) + +XSLTPROC_PROCESS_MAN = \ + $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ + $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< + +%.7: %.xml + $(XSLTPROC_PROCESS_MAN) + +%.8: %.xml + $(XSLTPROC_PROCESS_MAN) |