diff options
| author | Graydon Hoare <[email protected]> | 2011-05-01 20:18:52 +0000 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-05-01 20:20:25 +0000 |
| commit | 40624e35d74e5d200ae689c02753f0d60924e668 (patch) | |
| tree | e1e259098d5c49cd49844b40abd46ec35219d94a /mk/docs.mk | |
| parent | rustc: Preserve dots in input path when using an implicit output path (diff) | |
| download | rust-40624e35d74e5d200ae689c02753f0d60924e668.tar.xz rust-40624e35d74e5d200ae689c02753f0d60924e668.zip | |
Start splitting up Makefile.in
Diffstat (limited to 'mk/docs.mk')
| -rw-r--r-- | mk/docs.mk | 16 |
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 |