X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=doc%2Fman%2FMakefile.am;h=aed7835a34a6239bf5b73f00b4096a935180b2b8;hb=c53279a3e7796da67c5ad8d5e5657bf03def2dcb;hp=d84bfcdc91b05799e2a029df5f33159bcd70e3c1;hpb=156b0cf7b48f8f2e0e99b148803354ba8b1e5c6a;p=lttng-ust.git diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am index d84bfcdc..aed7835a 100644 --- a/doc/man/Makefile.am +++ b/doc/man/Makefile.am @@ -49,7 +49,7 @@ MAN1 = $(addsuffix .1,$(MAN1_NAMES)) MAN3 = $(addsuffix .3,$(MAN3_NAMES)) $(MAN3_ALIASES) MAN = $(MAN1) $(MAN3) -if MAN_PAGES_OPT +if ENABLE_MAN_PAGES # At this point, we know the user asked to build the man pages. if HAVE_ASCIIDOC_XMLTO @@ -80,10 +80,21 @@ XTO = $(xmlto_verbose)$(XMLTO) -m $(XSL_FILE) man %.3.xml: $(srcdir)/%.3.txt $(COMMON_DEPS) $(ADOC_DOCBOOK) -o $@ $< -tracef.3 vtracef.3 &: tracef.3.xml $(XSL_FILE) +# These pair of files are generated by a single invocation of xmlto, use an +# empty rule that depends on a fake intermediate file to track the dependencies +# without resorting to Group Targets which were only introduced in GNU Make 4.3. +tracef.3 vtracef.3: tracef.3.alias + @# Empty recipe to mark tracef.3 and vtracef.3 as rebuilt + +tracelog.3 vtracelog.3: tracelog.3.alias + @# Empty recipe to mark tracelog.3 and vtracelog.3 as rebuilt + +.INTERMEDIATE: tracef.3.alias tracelog.3.alias + +tracef.3.alias: tracef.3.xml $(XSL_FILE) $(XTO) $< 2>/dev/null -tracelog.3 vtracelog.3 &: tracelog.3.xml $(XSL_FILE) +tracelog.3.alias: tracelog.3.xml $(XSL_FILE) $(XTO) $< 2>/dev/null %.3: %.3.xml $(XSL_FILE) @@ -105,28 +116,28 @@ ERR_MSG += "Make sure both tools are installed and run the configure script agai @echo $(ERR_MSG) @false endif # HAVE_ASCIIDOC_XMLTO -endif # MAN_PAGES_OPT +endif # ENABLE_MAN_PAGES # Start with empty distributed/installed man pages: dist_man1_MANS = dist_man3_MANS = EXTRA_DIST = -if MAN_PAGES_OPT +if ENABLE_MAN_PAGES # Building man pages: we can install and distribute them. dist_man1_MANS += $(MAN1) dist_man3_MANS += $(MAN3) $(MAN3_TROFF) -else # MAN_PAGES_OPT +else # ENABLE_MAN_PAGES # Those are not known by automake yet because dist_man3_MANS is empty # at this point, so make sure they are distributed. EXTRA_DIST += $(MAN3_TROFF) -endif # MAN_PAGES_OPT +endif # ENABLE_MAN_PAGES -if !MAN_PAGES_OPT +if !ENABLE_MAN_PAGES dist-hook: @echo "Error: Please enable the man pages before creating a distribution tarball." @false -endif # !MAN_PAGES_OPT +endif # !ENABLE_MAN_PAGES # Always distribute the source files. EXTRA_DIST += $(MAN_TXT) $(COMMON_TXT) $(XSL_FILE) $(ASCIIDOC_CONF) README.md