rust/doc/Makefile

22 lines
512 B
Makefile
Raw Normal View History

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