aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 8e07a9a1..dc22f73f 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,3 +1,4 @@
+DOC_VER := $(shell date +"%Y-%m-%d")-snap
all: rust.pdf rust.html
@@ -11,6 +12,9 @@ version.texi: Makefile
%.html: %.texi version.texi
makeinfo --html --ifhtml --force --no-split --output=$@ $<
+snap: rust.pdf
+ mv $< rust-$(DOC_VER).pdf
+
clean:
rm -f rust.aux rust.cp rust.fn rust.ky rust.log rust.pdf \
rust.html rust.pg rust.toc rust.tp rust.vr \ No newline at end of file