Skip to content

Commit b2cac49

Browse files
committed
doc: fix version stamp for TeX files
This fixes a regression introduced in 3d57b24.
1 parent 4098327 commit b2cac49

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

mk/docs.mk

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ CDOCS :=
1717
DOCS_L10N :=
1818
HTML_DEPS :=
1919

20-
BASE_DOC_OPTS := --include-before-body=doc/version_info.html --standalone \
21-
--toc --number-sections
22-
HTML_OPTS = $(BASE_DOC_OPTS) --to=html5 --section-divs --css=rust.css \
23-
--include-in-header=doc/favicon.inc
24-
TEX_OPTS = $(BASE_DOC_OPTS) --to=latex
20+
BASE_DOC_OPTS := --standalone --toc --number-sections
21+
HTML_OPTS = $(BASE_DOC_OPTS) --to=html5 --section-divs --css=rust.css \
22+
--include-before-body=doc/version_info.html --include-in-header=doc/favicon.inc
23+
TEX_OPTS = $(BASE_DOC_OPTS) --include-before-body=doc/version.md --to=latex
2524
EPUB_OPTS = $(BASE_DOC_OPTS) --to=epub
2625

2726
######################################################################
2827
# Rust version
2928
######################################################################
29+
3030
doc/version.md: $(MKFILE_DEPS) $(wildcard $(S)doc/*.*)
3131
@$(call E, version-stamp: $@)
3232
$(Q)echo "$(CFG_VERSION)" >$@
@@ -84,7 +84,7 @@ doc/rust.tex: rust.md doc/version.md
8484
$(CFG_PANDOC) $(TEX_OPTS) --output=$@
8585

8686
DOCS += doc/rust.epub
87-
doc/rust.epub: rust.md doc/version_info.html doc/rust.css
87+
doc/rust.epub: rust.md
8888
@$(call E, pandoc: $@)
8989
$(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \
9090
$(CFG_PANDOC) $(EPUB_OPTS) --output=$@
@@ -114,7 +114,7 @@ doc/tutorial.tex: tutorial.md doc/version.md
114114
$(CFG_PANDOC) $(TEX_OPTS) --output=$@
115115

116116
DOCS += doc/tutorial.epub
117-
doc/tutorial.epub: tutorial.md doc/version_info.html doc/rust.css
117+
doc/tutorial.epub: tutorial.md
118118
@$(call E, pandoc: $@)
119119
$(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \
120120
$(CFG_PANDOC) $(EPUB_OPTS) --output=$@
@@ -265,6 +265,7 @@ endif # No pandoc / node
265265
######################################################################
266266
# LLnextgen (grammar analysis from refman)
267267
######################################################################
268+
268269
ifeq ($(CFG_LLNEXTGEN),)
269270
$(info cfg: no llnextgen found, omitting grammar-verification)
270271
else

0 commit comments

Comments
 (0)