Skip to content

Commit af4e18d

Browse files
committed
Improve the node-doc-building logic.
1 parent b4fc99e commit af4e18d

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

configure

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,11 @@ probe CFG_PANDOC pandoc
291291
probe CFG_PDFLATEX pdflatex
292292
probe CFG_NODE node
293293

294+
if [ -z "$CFG_NODE" ]
295+
then
296+
probe CFG_NODE nodejs
297+
fi
298+
294299
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
295300
then
296301
err "either clang or gcc is required"

mk/docs.mk

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,11 @@ endif
4444

4545
ifdef CFG_NODE
4646

47-
doc/tutorial/web/index.html: doc/tutorial/args.md \
48-
doc/tutorial/control.md \
49-
doc/tutorial/data.md \
50-
doc/tutorial/ffi.md \
51-
doc/tutorial/func.md \
52-
doc/tutorial/generic.md \
53-
doc/tutorial/iface.md \
54-
doc/tutorial/index.md \
55-
doc/tutorial/intro.md \
56-
doc/tutorial/mod.md \
57-
doc/tutorial/setup.md \
58-
doc/tutorial/syntax.md \
59-
doc/tutorial/task.md \
60-
doc/tutorial/test.md
47+
doc/tutorial/web/index.html: \
48+
$(wildcard $(S)doc/tutorial/*.md)
49+
@$(call E, cp: $@)
50+
$(Q)cp -arv $(S)doc/tutorial doc/
51+
@$(call E, node: build.js)
6152
$(Q)cd doc/tutorial && $(CFG_NODE) build.js
6253

6354
endif

0 commit comments

Comments
 (0)