File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ doc/rust.html: rust.md doc/version_info.html doc/rust.css doc/manual.css
45
45
--from =markdown --to=html \
46
46
--css=rust.css \
47
47
--css=manual.css \
48
- --include-before-body=doc/version_info.html \
48
+ --include-before-body=doc/version_info.html \
49
49
--output=$@
50
50
endif
51
51
@@ -66,6 +66,7 @@ doc/rust.tex: rust.md doc/version.md
66
66
" $( CFG_PANDOC) " \
67
67
--standalone --toc \
68
68
--number-sections \
69
+ --include-before-body=doc/version.md \
69
70
--from =markdown --to=latex \
70
71
--output=$@
71
72
@@ -199,16 +200,17 @@ ifdef CFG_DISABLE_DOCS
199
200
endif
200
201
201
202
202
- doc/version.md : $(MKFILE_DEPS ) rust.md
203
+ doc/version.md : $(MKFILE_DEPS ) $( wildcard $( S ) doc/ * . * )
203
204
@$(call E, version-stamp: $@ )
204
205
$(Q ) echo " $( CFG_VERSION) " > $@
205
206
206
- doc/version_info.html : version_info.html.template
207
+ doc/version_info.html : version_info.html.template $(MKFILE_DEPS ) \
208
+ $(wildcard $(S)doc/*.*)
207
209
@$(call E, version-info: $@)
208
210
sed -e "s/VERSION/$(CFG_RELEASE)/; s/SHORT_HASH/$(shell echo \
209
211
$(CFG_VER_HASH) | head -c 8)/;\
210
212
s/STAMP/$(CFG_VER_HASH)/;" $< >$@
211
213
212
- GENERATED += doc/version.md
214
+ GENERATED += doc/version.md doc/version_info.html
213
215
214
216
docs : $(DOCS )
You can’t perform that action at this time.
0 commit comments