projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc/man: only require asciidoc-attrs.conf when building the man pages
[lttng-tools.git]
/
doc
/
man
/
Makefile.am
diff --git
a/doc/man/Makefile.am
b/doc/man/Makefile.am
index d8882028a594bcc15b2f650b0184e50401774ca0..1d838e2ba0961a9458012344fec93f7a551c4e4e 100644
(file)
--- 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.
#
# They should always be built before creating a distribution tarball.
@@
-54,6
+53,7
@@
COMMON_TXT = \
# config
ASCIIDOC_CONF = $(srcdir)/asciidoc.conf
# config
ASCIIDOC_CONF = $(srcdir)/asciidoc.conf
+ASCIIDOC_ATTRS_CONF = $(builddir)/asciidoc-attrs.conf
XSL_FILES = \
manpage.xsl \
manpage-callouts.xsl \
XSL_FILES = \
manpage.xsl \
manpage-callouts.xsl \
@@
-77,11
+77,15
@@
if MAN_PAGES_OPT
# at this point, we know the user asked to build the man pages
if HAVE_ASCIIDOC_XMLTO
# tools
# 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
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 $@ $<
# recipes
%.1.xml: $(srcdir)/%.1.txt $(COMMON_DEPS)
$(ADOC_DOCBOOK) -o $@ $<
@@
-135,5
+139,12
@@
dist_man3_MANS += $(MAN3)
dist_man8_MANS += $(MAN8)
endif # MAN_PAGES_OPT
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
# 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
This page took
0.023424 seconds
and
4
git commands to generate.