Makefile
changeset 206 407f2a82ef26
parent 204 f93358e8be5b
child 207 3c96103ced32
--- a/Makefile	Tue Jul 10 19:14:31 2012 +0300
+++ b/Makefile	Tue Jul 10 19:25:18 2012 +0300
@@ -128,7 +128,7 @@
 INDEX_FILES := $(C5_FILES:.dict-c5=.index)
 
 RST_FILES := $(sort $(wildcard *.rst) STAT.rst VERSION.rst)
-HTML_FILES := $(RST_FILES:.rst=.html)
+HTML_FILES := $(filter-out VERSION.html header.html,$(RST_FILES:.rst=.html))
 
 pkgname = gadict
 fullpkgname = $(pkgname)-$(vmajor).$(vminor)
@@ -275,7 +275,7 @@
 .PHONY: html
 html: $(HTML_FILES)
 
-$(HTML_FILES): %.html: %.rst rst.css VERSION.rst $(BUILD_SCRIPTS)
+$(HTML_FILES): %.html: %.rst header.rst rst.css VERSION.rst $(BUILD_SCRIPTS)
 	$(RST2HTML) $(RST2HTML_FLAGS) --stylesheet=rst.css $*.rst $@
 
 VERSION.rst: VERSION $(BUILD_SCRIPTS)
@@ -320,8 +320,10 @@
 .PHONY: stat
 stat: STAT.rst
 
-STAT.rst: $(C5_FILES) VERSION.rst $(BUILD_SCRIPTS)
+STAT.rst: $(C5_FILES) header.rst VERSION.rst $(BUILD_SCRIPTS)
 	{ \
+echo '.. include:: header.rst'; \
+echo; \
 echo '============================'; \
 echo ' gadict project statistics.'; \
 echo '============================'; \