mirror of
https://github.com/rust-lang/rust
synced 2024-11-02 13:50:48 +00:00
21 lines
725 B
Makefile
21 lines
725 B
Makefile
######################################################################
|
|
# Doc variables and rules
|
|
######################################################################
|
|
|
|
doc/version.texi: $(MKFILES) rust.texi
|
|
@$(call E, version-stamp: $@)
|
|
$(Q)echo "@macro gitversion" >$@
|
|
$(Q)echo "$(CFG_VERSION)" >>$@
|
|
$(Q)echo "@end macro" >>$@
|
|
|
|
doc/%.pdf: %.texi doc/version.texi
|
|
@$(call E, texi2pdf: $@)
|
|
$(Q)texi2pdf --silent --batch -I doc -o $@ --clean $<
|
|
|
|
doc/%.html: %.texi doc/version.texi
|
|
@$(call E, makeinfo: $@)
|
|
$(Q)makeinfo -I doc --html --ifhtml --force --no-split --output=$@ $<
|
|
|
|
docsnap: doc/rust.pdf
|
|
@$(call E, snap: doc/rust-$(shell date +"%Y-%m-%d")-snap.pdf)
|
|
$(Q)mv $< doc/rust-$(shell date +"%Y-%m-%d")-snap.pdf
|