X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=doc%2Fman%2FMakefile.am;h=1d838e2ba0961a9458012344fec93f7a551c4e4e;hb=e50eabc64fa339ca9794a3787a151de55ced8bf2;hp=075ab8ba0f0f36bf8987c0787e0faa152fdc8f3b;hpb=491685e4c4062accff21c9a0dfc3fca0242594e6;p=lttng-tools.git diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am index 075ab8ba0..1d838e2ba 100644 --- a/doc/man/Makefile.am +++ b/doc/man/Makefile.am @@ -53,6 +53,7 @@ COMMON_TXT = \ # config ASCIIDOC_CONF = $(srcdir)/asciidoc.conf +ASCIIDOC_ATTRS_CONF = $(builddir)/asciidoc-attrs.conf XSL_FILES = \ manpage.xsl \ manpage-callouts.xsl \ @@ -76,10 +77,15 @@ if MAN_PAGES_OPT # at this point, we know the user asked to build the man pages if HAVE_ASCIIDOC_XMLTO # tools -ADOC = $(ASCIIDOC) -f $(ASCIIDOC_CONF) -d manpage +ADOC = $(ASCIIDOC) -f $(ASCIIDOC_CONF) -f $(ASCIIDOC_ATTRS_CONF) -d manpage ADOC_DOCBOOK = $(ADOC) -b docbook XTO = $(XMLTO) -m $(firstword $(XSL_SRC_FILES)) man +# only add this dependency if we can build the man pages because it's +# a file generated by the configure script, so it's more recent than +# the pregenerated man pages in a tarball +COMMON_DEPS += $(ASCIIDOC_ATTRS_CONF) + # recipes %.1.xml: $(srcdir)/%.1.txt $(COMMON_DEPS) $(ADOC_DOCBOOK) -o $@ $< @@ -140,4 +146,5 @@ dist-hook: endif # !MAN_PAGES_OPT # always distribute the source files -EXTRA_DIST = $(MAN_TXT) $(COMMON_TXT) $(XSL_SRC_FILES) $(ASCIIDOC_CONF).in +EXTRA_DIST = $(MAN_TXT) $(COMMON_TXT) $(XSL_SRC_FILES) \ + $(ASCIIDOC_CONF) $(ASCIIDOC_ATTRS_CONF).in