From df0fa603d091eb92e9ce7d2be969ae78a11057e2 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Sat, 3 Jul 2010 00:27:33 -0700 Subject: Add version-stamp machinery (and put "Draft + datestamp" into doc footer). --- doc/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'doc/Makefile') diff --git a/doc/Makefile b/doc/Makefile index 081a723b..8e07a9a1 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,10 +1,14 @@ all: rust.pdf rust.html -%.pdf: %.texi +version.texi: Makefile + git log -1 \ + --format='@macro gitversion%n%h %ci%n@end macro%n' >$@ + +%.pdf: %.texi version.texi texi2pdf $< -%.html: %.texi +%.html: %.texi version.texi makeinfo --html --ifhtml --force --no-split --output=$@ $< clean: -- cgit v1.2.3