Doc build: dont try to update recoll.conf.xml if the confxml program is not around

This commit is contained in:
Jean-Francois Dockes 2022-06-23 17:26:40 +02:00
parent acc7cdc189
commit 2831993e19

View File

@ -13,6 +13,7 @@
#XSLDIR="/opt/local/share/xsl/docbook-xsl/"
#Linux
XSLDIR="/usr/share/xml/docbook/stylesheet/docbook-xsl/"
UTILBUILDS=/home/dockes/tmp/builds/medocutils/
# Options common to the single-file and chunked versions
@ -48,11 +49,10 @@ index.html: usermanual.xml recoll.conf.xml
usermanual.pdf: usermanual.xml recoll.conf.xml
dblatex --xslt-opts="--xinclude" -tpdf $<
UTILBUILDS=/home/dockes/tmp/builds/medocutils/
recoll.conf.xml: ../../sampleconf/recoll.conf
$(UTILBUILDS)/confxml --docbook \
test -x $(UTILBUILDS)/confxml && $(UTILBUILDS)/confxml --docbook \
--idprefix=RCL.INSTALL.CONFIG.RECOLLCONF \
../../sampleconf/recoll.conf > recoll.conf.xml
../../sampleconf/recoll.conf > recoll.conf.xml || touch recoll.conf.xml
# Generating a restructured text version, for uploading to readthedocs.
# Does not really work, the internal links are botched. pandoc