2011-05-01 15:18:52 -05:00
|
|
|
######################################################################
|
|
|
|
# Doc variables and rules
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
doc/version.texi: $(MKFILES) rust.texi
|
2011-06-25 14:23:27 -05:00
|
|
|
@$(call E, version-stamp: $@)
|
|
|
|
$(Q)echo "@macro gitversion" >$@
|
|
|
|
$(Q)echo "$(CFG_VERSION)" >>$@
|
|
|
|
$(Q)echo "@end macro" >>$@
|
2011-05-01 15:18:52 -05:00
|
|
|
|
|
|
|
doc/%.pdf: %.texi doc/version.texi
|
2011-06-25 14:23:27 -05:00
|
|
|
@$(call E, texi2pdf: $@)
|
2011-06-27 14:43:19 -05:00
|
|
|
$(Q)texi2pdf --silent --batch -I doc -o $@ --clean $<
|
2011-05-01 15:18:52 -05:00
|
|
|
|
|
|
|
doc/%.html: %.texi doc/version.texi
|
2011-06-25 14:23:27 -05:00
|
|
|
@$(call E, makeinfo: $@)
|
|
|
|
$(Q)makeinfo -I doc --html --ifhtml --force --no-split --output=$@ $<
|
2011-05-01 15:18:52 -05:00
|
|
|
|
|
|
|
docsnap: doc/rust.pdf
|
2011-06-25 14:23:27 -05:00
|
|
|
@$(call E, snap: doc/rust-$(shell date +"%Y-%m-%d")-snap.pdf)
|
|
|
|
$(Q)mv $< doc/rust-$(shell date +"%Y-%m-%d")-snap.pdf
|
2011-10-24 17:25:41 -05:00
|
|
|
|
2011-10-26 13:55:28 -05:00
|
|
|
doc/std/index.html: nd/std/Languages.txt nd/std/Topics.txt nd/std/std.css \
|
2011-10-24 17:25:41 -05:00
|
|
|
$(STDLIB_CRATE) $(STDLIB_INPUTS)
|
|
|
|
@$(call E, naturaldocs: $@)
|
2011-10-26 13:55:28 -05:00
|
|
|
naturaldocs -i $(S)src/lib -o HTML doc/std -p nd/std -r -s Default std
|
2011-10-24 17:25:41 -05:00
|
|
|
|
|
|
|
nd/std/Languages.txt: $(S)doc/Languages.txt
|
|
|
|
@$(call E, cp: $@)
|
|
|
|
$(Q)cp $< $@
|
|
|
|
|
|
|
|
nd/std/Topics.txt: $(S)doc/Topics.txt
|
|
|
|
@$(call E, cp: $@)
|
|
|
|
$(Q)cp $< $@
|
2011-10-26 13:55:28 -05:00
|
|
|
|
|
|
|
nd/std/std.css: $(S)doc/std.css
|
|
|
|
@$(call E, cp: $@)
|
|
|
|
$(Q)cp $< $@
|