File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,12 @@ else
148
148
endif
149
149
endif
150
150
151
+ ifeq ($(CFG_NODE ) ,)
152
+ $(info cfg : no node found, omitting doc/tutorial/web)
153
+ else
154
+ DOCS += doc/tutorial/web/index.html
155
+ endif
156
+
151
157
ifeq ($(CFG_NATURALDOCS ) ,)
152
158
$(info cfg : no naturaldocs found, omitting library doc build)
153
159
else
Original file line number Diff line number Diff line change @@ -289,6 +289,7 @@ probe CFG_NATURALDOCS naturaldocs
289
289
probe CFG_LLNEXTGEN LLnextgen
290
290
probe CFG_PANDOC pandoc
291
291
probe CFG_PDFLATEX pdflatex
292
+ probe CFG_NODE node
292
293
293
294
if [ -z " $CFG_ENABLE_CLANG " -a -z " $CFG_GCC " ]
294
295
then
Original file line number Diff line number Diff line change @@ -42,6 +42,26 @@ doc/rust.pdf: doc/rust.tex
42
42
43
43
endif
44
44
45
+ ifdef CFG_NODE
46
+
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
61
+ $(Q ) cd doc/tutorial && $(CFG_NODE ) build.js
62
+
63
+ endif
64
+
45
65
endif
46
66
47
67
ifdef CFG_LLNEXTGEN
You can’t perform that action at this time.
0 commit comments