Commit 56ea2e79 authored by David Herrmann's avatar David Herrmann Committed by Kristian H. Kristensen

man: fix compilation without xsltproc

We really shouldn't add the man-pages when HAVE_XSLTPROC is not true so
move it into the if-clause.
But declare the automake-variables outside of the if-clause to avoid
automake complaints.
Signed-off-by: default avatarDavid Herrmann <dh.herrmann@googlemail.com>
parent 49dee9a8
......@@ -9,16 +9,18 @@ MANPAGES = \
MANPAGES_ALIASES = \
wl_display_connect_to_fd.3
wl_display_connect_to_fd.3: wl_display_connect.3
XML_FILES = \
${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,$(MANPAGES)}}}}
CLEANFILES = $(MANPAGES) $(MANPAGES_ALIASES)
EXTRA_DIST = $(MANPAGES) $(MANPAGES_ALIASES) $(XML_FILES)
man_MANS = $(MANPAGES) $(MANPAGES_ALIASES)
CLEANFILES =
EXTRA_DIST =
man_MANS =
if HAVE_XSLTPROC
CLEANFILES += $(MANPAGES) $(MANPAGES_ALIASES)
EXTRA_DIST += $(MANPAGES) $(MANPAGES_ALIASES) $(XML_FILES)
man_MANS += $(MANPAGES) $(MANPAGES_ALIASES)
XSLTPROC_FLAGS = \
--stringparam man.authors.section.enabled 0 \
--stringparam man.copyright.section.enabled 0 \
......@@ -42,4 +44,6 @@ XSLTPROC_PROCESS_MAN = \
%.7: %.xml
$(XSLTPROC_PROCESS_MAN)
wl_display_connect_to_fd.3: wl_display_connect.3
endif # HAVE_XSLTPROC
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment