From 940706d45af236884ba0a972fe54cb13612d73a5 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sun, 18 Nov 2012 18:55:34 -0500 Subject: Fix manpage build under make distcheck Signed-off-by: Anthony G. Basile --- man/Makefile.am | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'man') diff --git a/man/Makefile.am b/man/Makefile.am index a328876f25..0ecf97d35a 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -1,11 +1,24 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} +XMLPAGES = \ + udev.xml \ + udevadm.xml + +noinst_DATA = \ + $(XMLPAGES) + +EXTRA_DIST = \ + $(XMLPAGES) + MANPAGES = \ udev.7 \ udevadm.8 -XML_FILES = \ - ${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}} +man_MANS = \ + $(MANPAGES) + +CLEANFILES = \ + $(MANPAGES) XSLTPROC_FLAGS = \ --nonet \ @@ -15,21 +28,11 @@ XSLTPROC_FLAGS = \ --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 +udev.7: udev.xml $(XSLTPROC_PROCESS_MAN) -%.8: %.xml +udevadm.8: udevadm.xml $(XSLTPROC_PROCESS_MAN) -- cgit v1.2.3-54-g00ecf