about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-03-27 13:07:26 -0700
committerGraydon Hoare <graydon@mozilla.com>2012-03-27 13:07:26 -0700
commit55bfc5e4f9387c8b7e5f917ae389ab4fa7d5c12a (patch)
treeab232f4a493d0fc4be08ba2f7bb2db2515a4a6aa
parentb7b16afc3d72677ee99997006984e11f49134576 (diff)
downloadrust-55bfc5e4f9387c8b7e5f917ae389ab4fa7d5c12a.tar.gz
rust-55bfc5e4f9387c8b7e5f917ae389ab4fa7d5c12a.zip
Prep docs before pdf.
-rw-r--r--mk/docs.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/docs.mk b/mk/docs.mk
index 39e9bf98f76..d631bf5597a 100644
--- a/mk/docs.mk
+++ b/mk/docs.mk
@@ -46,12 +46,12 @@ doc/rust.html: rust.md doc/version.md doc/keywords.md doc/rust.css
 DOCS += doc/rust.pdf
 doc/rust.tex: rust.md doc/version.md doc/keywords.md
 	@$(call E, pandoc: $@)
-	$(Q)$(CFG_PANDOC) \
+	$(Q)$(CFG_NODE) $(S)doc/prep.js $< | \
+	"$(CFG_PANDOC)" \
          --standalone --toc \
          --number-sections \
          --from=markdown --to=latex \
-         --output=$@ \
-         $<
+         --output=$@
 
 doc/rust.pdf: doc/rust.tex
 	@$(call E, pdflatex: $@)