rust/doc/Makefile
Ralph Giles 4af0db4d76 Make version.texi depend on rust.texi.
This will at least update the version string on the title page
when the book source changes. It may not be entirely accurate
since rust.texi may have uncommitted changes. But previously,
it was basically only ever updated on the first build or after
'make clean'.
2010-11-03 15:37:54 -07:00

21 lines
505 B
Makefile

DOC_VER := $(shell date +"%Y-%m-%d")-snap
all: rust.pdf rust.html
version.texi: Makefile rust.texi
git log -1 \
--format='@macro gitversion%n%h %ci%n@end macro%n' >$@
%.pdf: %.texi version.texi
texi2pdf $<
%.html: %.texi version.texi
makeinfo --html --ifhtml --force --no-split --output=$@ $<
snap: rust.pdf
mv $< rust-$(DOC_VER).pdf
clean:
rm -f rust.aux rust.cp rust.fn rust.ky rust.log rust.pdf \
rust.html rust.pg rust.toc rust.tp rust.vr rust.cps \
version.texi