Skip to content

Commit ae4e3e8

Browse files
bk2204gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 95e5efc commit ae4e3e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ INSTALL_INFO = install-info
120120
DOCBOOK2X_TEXI = docbook2x-texi
121121
DBLATEX = dblatex
122122
ASCIIDOC_DBLATEX_DIR = /etc/asciidoc/dblatex
123+
DBLATEX_COMMON = -p $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.xsl -s $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.sty
123124
ifndef PERL_PATH
124125
PERL_PATH = /usr/bin/perl
125126
endif
@@ -368,7 +369,7 @@ user-manual.texi: user-manual.xml
368369

369370
user-manual.pdf: user-manual.xml
370371
$(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) $< && \
372373
mv $@+ $@
373374

374375
gitman.texi: $(MAN_XML) cat-texi.perl texi.xsl

0 commit comments

Comments
 (0)