mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Improve the node-doc-building logic.
This commit is contained in:
parent
b4fc99e09e
commit
af4e18d980
5
configure
vendored
5
configure
vendored
@ -291,6 +291,11 @@ probe CFG_PANDOC pandoc
|
|||||||
probe CFG_PDFLATEX pdflatex
|
probe CFG_PDFLATEX pdflatex
|
||||||
probe CFG_NODE node
|
probe CFG_NODE node
|
||||||
|
|
||||||
|
if [ -z "$CFG_NODE" ]
|
||||||
|
then
|
||||||
|
probe CFG_NODE nodejs
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
|
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
|
||||||
then
|
then
|
||||||
err "either clang or gcc is required"
|
err "either clang or gcc is required"
|
||||||
|
19
mk/docs.mk
19
mk/docs.mk
@ -44,20 +44,11 @@ endif
|
|||||||
|
|
||||||
ifdef CFG_NODE
|
ifdef CFG_NODE
|
||||||
|
|
||||||
doc/tutorial/web/index.html: doc/tutorial/args.md \
|
doc/tutorial/web/index.html: \
|
||||||
doc/tutorial/control.md \
|
$(wildcard $(S)doc/tutorial/*.md)
|
||||||
doc/tutorial/data.md \
|
@$(call E, cp: $@)
|
||||||
doc/tutorial/ffi.md \
|
$(Q)cp -arv $(S)doc/tutorial doc/
|
||||||
doc/tutorial/func.md \
|
@$(call E, node: build.js)
|
||||||
doc/tutorial/generic.md \
|
|
||||||
doc/tutorial/iface.md \
|
|
||||||
doc/tutorial/index.md \
|
|
||||||
doc/tutorial/intro.md \
|
|
||||||
doc/tutorial/mod.md \
|
|
||||||
doc/tutorial/setup.md \
|
|
||||||
doc/tutorial/syntax.md \
|
|
||||||
doc/tutorial/task.md \
|
|
||||||
doc/tutorial/test.md
|
|
||||||
$(Q)cd doc/tutorial && $(CFG_NODE) build.js
|
$(Q)cd doc/tutorial && $(CFG_NODE) build.js
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user