aboutsummaryrefslogtreecommitdiff
path: root/mk/docs.mk
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-05-01 20:18:52 +0000
committerGraydon Hoare <[email protected]>2011-05-01 20:20:25 +0000
commit40624e35d74e5d200ae689c02753f0d60924e668 (patch)
treee1e259098d5c49cd49844b40abd46ec35219d94a /mk/docs.mk
parentrustc: Preserve dots in input path when using an implicit output path (diff)
downloadrust-40624e35d74e5d200ae689c02753f0d60924e668.tar.xz
rust-40624e35d74e5d200ae689c02753f0d60924e668.zip
Start splitting up Makefile.in
Diffstat (limited to 'mk/docs.mk')
-rw-r--r--mk/docs.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/mk/docs.mk b/mk/docs.mk
new file mode 100644
index 00000000..ba00f57c
--- /dev/null
+++ b/mk/docs.mk
@@ -0,0 +1,16 @@
+######################################################################
+# Doc variables and rules
+######################################################################
+
+doc/version.texi: $(MKFILES) rust.texi
+ (cd $(S) && git log -1 \
+ --pretty=format:'@macro gitversion%n%h %ci%n@end macro%n') >$@
+
+doc/%.pdf: %.texi doc/version.texi
+ texi2pdf -I doc -o $@ --clean $<
+
+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