Documentation: move dblatex arguments into variable
Our dblatex invocation uses several style components from the AsciiDoc distribution, but those components are not available when building with Asciidoctor. Move the command line arguments into a variable so it can be overridden by the user or makefile configuration options. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
brian m. carlson committed
Jan 22, 2017 at 02:41 UTC
ae4e3e8d449a8e1fbe8d5a3fe5e69f1154f97f3f
1 file changed
+2
-1
Documentation/Makefile
+2
-1
@@ -120,6 +120,7 @@ INSTALL_INFO = install-info
120
DOCBOOK2X_TEXI = docbook2x-texi
121
DBLATEX = dblatex
122
ASCIIDOC_DBLATEX_DIR = /etc/asciidoc/dblatex
123
+DBLATEX_COMMON = -p $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.xsl -s $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.sty
124
ifndef PERL_PATH
125
PERL_PATH = /usr/bin/perl
126
endif
@@ -368,7 +369,7 @@ user-manual.texi: user-manual.xml
369
370
user-manual.pdf: user-manual.xml
371
$(QUIET_DBLATEX)$(RM) $@+ $@ && \
371
- $(DBLATEX) -o $@+ -p $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.xsl -s $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.sty $< && \
372
+ $(DBLATEX) -o $@+ $(DBLATEX_COMMON) $< && \
373
mv $@+ $@
374
375
gitman.texi: $(MAN_XML) cat-texi.perl texi.xsl