doc/Makefile.am: don't use asciidoc if disabled

In case doc/configure.ac hasn't found asciidoc or any of its
prerequisites (such as pygmentize), make shouldn't try to run it.
One such case ("gendoc" target) is covered while the other
("%.html" target) is not. Fix it by adding a proper ifdef.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
This commit is contained in:
Kir Kolyshkin 2015-07-06 22:33:23 -07:00 committed by Thomas Haller
parent 60ac492058
commit 4caa5cda2c
1 changed files with 4 additions and 0 deletions

View File

@ -41,12 +41,16 @@ endif
%.html: %.txt link_doc
if HAVE_ASCIIDOC
./resolve-asciidoc-refs.py $< > asciidoc.tmp
asciidoc $(ASCIIDOCOPTS) -o $@ asciidoc.tmp
if LINK_DOC
./doxygen-link.py libnl.dict $@ > asciidoc.tmp
mv asciidoc.tmp $@
endif
else
@echo "Warning: Building of asciidoc files is disabled, check autoconf logs"
endif
asciidoc: core.html route.html index.html