rust/mk/docs.mk

22 lines
725 B
Makefile
Raw Normal View History

2011-05-01 22:18:52 +02:00
######################################################################
# Doc variables and rules
######################################################################
doc/version.texi: $(MKFILES) rust.texi
2011-06-25 21:23:27 +02:00
@$(call E, version-stamp: $@)
$(Q)echo "@macro gitversion" >$@
$(Q)echo "$(CFG_VERSION)" >>$@
$(Q)echo "@end macro" >>$@
2011-05-01 22:18:52 +02:00
doc/%.pdf: %.texi doc/version.texi
2011-06-25 21:23:27 +02:00
@$(call E, texi2pdf: $@)
2011-06-27 21:43:19 +02:00
$(Q)texi2pdf --silent --batch -I doc -o $@ --clean $<
2011-05-01 22:18:52 +02:00
doc/%.html: %.texi doc/version.texi
2011-06-25 21:23:27 +02:00
@$(call E, makeinfo: $@)
$(Q)makeinfo -I doc --html --ifhtml --force --no-split --output=$@ $<
2011-05-01 22:18:52 +02:00
docsnap: doc/rust.pdf
2011-06-25 21:23:27 +02:00
@$(call E, snap: doc/rust-$(shell date +"%Y-%m-%d")-snap.pdf)
$(Q)mv $< doc/rust-$(shell date +"%Y-%m-%d")-snap.pdf