2011-05-01 15:18:52 -05:00
|
|
|
######################################################################
|
|
|
|
# Doc variables and rules
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
doc/version.texi: $(MKFILES) rust.texi
|
2011-06-13 16:45:26 -05:00
|
|
|
echo "@macro gitversion" >$@
|
2011-06-13 16:48:37 -05:00
|
|
|
echo "$(CFG_VERSION)" >>$@
|
2011-06-13 16:45:26 -05:00
|
|
|
echo "@end macro" >>$@
|
2011-05-01 15:18:52 -05:00
|
|
|
|
|
|
|
doc/%.pdf: %.texi doc/version.texi
|
2011-05-04 13:01:47 -05:00
|
|
|
texi2pdf --batch -I doc -o $@ --clean $<
|
2011-05-01 15:18:52 -05:00
|
|
|
|
|
|
|
doc/%.html: %.texi doc/version.texi
|
|
|
|
makeinfo -I doc --html --ifhtml --force --no-split --output=$@ $<
|
|
|
|
|
|
|
|
docsnap: doc/rust.pdf
|
|
|
|
mv $< doc/rust-$(shell date +"%Y-%m-%d")-snap.pdf
|