16
16
$(info cfg : no node found, omitting doc/tutorial.html)
17
17
else
18
18
19
+ doc/rust.css : rust.css
20
+ @$(call E, cp: $@ )
21
+ $(Q ) cp -a $< $@ 2> /dev/null
22
+
19
23
DOCS += doc/rust.html
20
- doc/rust.html : rust.md doc/version.md doc/keywords.md $( S ) doc/rust.css
24
+ doc/rust.html : rust.md doc/version.md doc/keywords.md doc/rust.css
21
25
@$(call E, pandoc: $@ )
22
26
$(Q )$(CFG_NODE ) $(S ) doc/prep.js --highlight $< | \
23
27
" $( CFG_PANDOC) " \
@@ -27,9 +31,6 @@ doc/rust.html: rust.md doc/version.md doc/keywords.md $(S)doc/rust.css
27
31
--from =markdown --to=html \
28
32
--css=rust.css \
29
33
--output=$@
30
- @$(call E, cp: $(S)doc/rust.css)
31
- -$(Q)cp -a $(S)doc/rust.css doc/rust.css 2> /dev/null
32
-
33
34
endif
34
35
35
36
ifeq ($(CFG_PDFLATEX),)
@@ -71,9 +72,7 @@ doc/rust.pdf: doc/rust.tex
71
72
else
72
73
73
74
DOCS += doc/tutorial.html
74
- doc/tutorial.html : $(S ) doc/tutorial.md $(S ) doc/rust.css
75
- @$(call E, cp: $(S ) doc/rust.css)
76
- -$(Q ) cp -a $(S ) doc/rust.css doc/ 2> /dev/null
75
+ doc/tutorial.html : tutorial.md doc/rust.css
77
76
@$(call E, pandoc: $@ )
78
77
$(Q )$(CFG_NODE ) $(S ) doc/prep.js --highlight $< | \
79
78
$(CFG_PANDOC) --standalone --toc \
@@ -124,7 +123,7 @@ doc/$(1)/index.html: $(2) $(3) $$(RUSTDOC) doc/$(1)/rust.css
124
123
@$$(call E, rustdoc: $$@ )
125
124
$(Q )$(RUSTDOC ) $(2 ) --output-dir=doc/$(1 )
126
125
127
- doc/$(1 ) /rust.css: $( S ) doc/ rust.css
126
+ doc/$(1 ) /rust.css: rust.css
128
127
@$$(call E, cp: $$@ )
129
128
$(Q ) cp $$< $$@
130
129
@@ -146,7 +145,7 @@ doc/version.md: $(MKFILE_DEPS) rust.md
146
145
@$(call E, version-stamp: $@ )
147
146
$(Q ) echo " $( CFG_VERSION) " > $@
148
147
149
- doc/keywords.md : $(MKFILE_DEPS ) rust.md
148
+ doc/keywords.md : $(S ) doc/keywords.txt $( MKFILE_DEPS ) rust.md
150
149
@$(call E, grep -v: $$@ )
151
150
$(Q ) grep -v ' ^#' $< > $@
152
151
0 commit comments