X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=doc%2Fman%2FMakefile.am;h=860c8be209a2fff01034c4a90578fd1c6bc405e3;hb=c4ee49840e6233047717851e7731477481500f44;hp=d8882028a594bcc15b2f650b0184e50401774ca0;hpb=a3eae3c98f047a8e795a01471adf8f4f7563947b;p=lttng-tools.git diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am index d8882028a..860c8be20 100644 --- a/doc/man/Makefile.am +++ b/doc/man/Makefile.am @@ -1,5 +1,4 @@ -# Man pages are only built if the --enable-man-pages option was -# passed to the configure script. +# Man pages are only built if they are enabled at configure time. # # They should always be built before creating a distribution tarball. @@ -53,7 +52,8 @@ COMMON_TXT = \ $(srcdir)/common-cmd-help-options.txt # config -ASCIIDOC_CONF = $(srcdir)/asciidoc.conf +ASCIIDOC_CONF = $(builddir)/asciidoc.conf +ASCIIDOC_ATTRS_CONF = $(builddir)/asciidoc-attrs.conf XSL_FILES = \ manpage.xsl \ manpage-callouts.xsl \ @@ -77,8 +77,7 @@ 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 \ - -a lttng_version="$(PACKAGE_VERSION)" +ADOC = $(ASCIIDOC) -f $(ASCIIDOC_CONF) -f $(ASCIIDOC_ATTRS_CONF) -d manpage ADOC_DOCBOOK = $(ADOC) -b docbook XTO = $(XMLTO) -m $(firstword $(XSL_SRC_FILES)) man @@ -135,5 +134,12 @@ dist_man3_MANS += $(MAN3) dist_man8_MANS += $(MAN8) endif # MAN_PAGES_OPT +if !MAN_PAGES_OPT +dist-hook: + @echo "Error: Please enable the man pages before creating a distribution tarball." + @false +endif # !MAN_PAGES_OPT + # always distribute the source files -EXTRA_DIST = $(MAN_TXT) $(COMMON_TXT) $(XSL_SRC_FILES) $(ASCIIDOC_CONF) +EXTRA_DIST = $(MAN_TXT) $(COMMON_TXT) $(XSL_SRC_FILES) \ + $(ASCIIDOC_CONF) $(ASCIIDOC_ATTRS_CONF).in