--- a/Makefile Thu Jan 12 23:24:56 2012 +0200
+++ b/Makefile Thu Jan 12 23:32:52 2012 +0200
@@ -184,9 +184,16 @@
.PHONY: html
html: $(HTML_FILES)
-$(HTML_FILES): %.html: %.rst
+$(HTML_FILES): %.html: %.rst rst.css VERSION.rst $(BUILD_SCRIPT)
$(RST2HTML) $(RST2HTML_FLAGS) --stylesheet=rst.css $*.rst $@
+VERSION.rst: VERSION $(BUILD_SCRIPT)
+ { \
+ echo 'Version: '$(vmajor).$(vminor); \
+ echo; \
+ echo 'Date: '`date +%F`; \
+ } >$@
+
################################################################
# Helpers targets.