Move the ifdefs to nest properly. Real clever.

This commit is contained in:
Graydon Hoare 2012-01-17 16:49:57 -08:00
parent 80c7bfb069
commit dbd3d6ac09
1 changed files with 4 additions and 2 deletions

View File

@ -42,18 +42,20 @@ doc/rust.pdf: doc/rust.tex
endif endif
endif
ifdef CFG_NODE ifdef CFG_NODE
doc/tutorial/web/index.html: \ doc/tutorial/web/index.html: \
$(wildcard $(S)doc/tutorial/*.md) $(wildcard $(S)doc/tutorial/*.md)
@$(call E, cp: $@) @$(call E, cp: $(S)doc/tutorial)
$(Q)cp -a $(S)doc/tutorial doc/ $(Q)cp -a $(S)doc/tutorial doc/
@$(call E, node: build.js) @$(call E, node: build.js)
$(Q)cd doc/tutorial && $(CFG_NODE) build.js $(Q)cd doc/tutorial && $(CFG_NODE) build.js
endif endif
endif
ifdef CFG_LLNEXTGEN ifdef CFG_LLNEXTGEN
doc/rust.g: rust.md $(S)src/etc/extract_grammar.py doc/rust.g: rust.md $(S)src/etc/extract_grammar.py