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:
parent
60ac492058
commit
4caa5cda2c
1 changed files with 4 additions and 0 deletions
|
@ -41,12 +41,16 @@ endif
|
||||||
|
|
||||||
|
|
||||||
%.html: %.txt link_doc
|
%.html: %.txt link_doc
|
||||||
|
if HAVE_ASCIIDOC
|
||||||
./resolve-asciidoc-refs.py $< > asciidoc.tmp
|
./resolve-asciidoc-refs.py $< > asciidoc.tmp
|
||||||
asciidoc $(ASCIIDOCOPTS) -o $@ asciidoc.tmp
|
asciidoc $(ASCIIDOCOPTS) -o $@ asciidoc.tmp
|
||||||
if LINK_DOC
|
if LINK_DOC
|
||||||
./doxygen-link.py libnl.dict $@ > asciidoc.tmp
|
./doxygen-link.py libnl.dict $@ > asciidoc.tmp
|
||||||
mv asciidoc.tmp $@
|
mv asciidoc.tmp $@
|
||||||
endif
|
endif
|
||||||
|
else
|
||||||
|
@echo "Warning: Building of asciidoc files is disabled, check autoconf logs"
|
||||||
|
endif
|
||||||
|
|
||||||
asciidoc: core.html route.html index.html
|
asciidoc: core.html route.html index.html
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue