2010-07-03 21:48:31 -07:00
|
|
|
DOC_VER := $(shell date +"%Y-%m-%d")-snap
|
2010-06-16 14:30:45 -07:00
|
|
|
|
|
|
|
all: rust.pdf rust.html
|
|
|
|
|
2010-11-03 10:42:51 -07:00
|
|
|
version.texi: Makefile rust.texi
|
2010-07-03 00:27:33 -07:00
|
|
|
git log -1 \
|
2010-12-24 16:01:42 -05:00
|
|
|
--pretty=format:'@macro gitversion%n%h %ci%n@end macro%n' >$@
|
2010-07-03 00:27:33 -07:00
|
|
|
|
|
|
|
%.pdf: %.texi version.texi
|
2010-06-16 14:30:45 -07:00
|
|
|
texi2pdf $<
|
|
|
|
|
2010-07-03 00:27:33 -07:00
|
|
|
%.html: %.texi version.texi
|
2010-06-23 21:03:09 -07:00
|
|
|
makeinfo --html --ifhtml --force --no-split --output=$@ $<
|
2010-06-16 14:30:45 -07:00
|
|
|
|
2010-07-03 21:48:31 -07:00
|
|
|
snap: rust.pdf
|
|
|
|
mv $< rust-$(DOC_VER).pdf
|
|
|
|
|
2010-06-16 14:30:45 -07:00
|
|
|
clean:
|
2010-06-23 21:03:09 -07:00
|
|
|
rm -f rust.aux rust.cp rust.fn rust.ky rust.log rust.pdf \
|
2010-07-04 15:39:53 -07:00
|
|
|
rust.html rust.pg rust.toc rust.tp rust.vr rust.cps \
|
|
|
|
version.texi
|