Split values.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 04 Nov 2011 15:58:36 +0200
changeset 8 d07c0496cdfe
parent 7 6a41484fd3a4
child 9 f40912333875
Split values.
Makefile
--- a/Makefile	Fri Oct 14 00:38:24 2011 +0300
+++ b/Makefile	Fri Nov 04 15:58:36 2011 +0200
@@ -34,7 +34,8 @@
 TXT_FILES := $(wildcard *.txt)
 
 HTML_DIR := tips-html
-HTML_FILES := $(patsubst %.rst,$(HTML_DIR)/%.html,$(RST_FILES)) $(HTML_DIR)/index.html $(HTML_DIR)/index-frame.html
+RST_HTML_FILES := $(patsubst %.rst,$(HTML_DIR)/%.html,$(RST_FILES))
+HTML_FILES := $(RST_HTML_FILES) $(HTML_DIR)/index.html $(HTML_DIR)/index-frame.html
 TXT__FILES := $(addprefix $(HTML_DIR)/,$(TXT_FILES))
 
 CHM_FILES := $(addprefix $(HTML_DIR)/,chm.hhp chm.hhc chm.stp)
@@ -53,7 +54,7 @@
 $(HTML_DIR)/%.html: %.rst rst.css | $(HTML_DIR)
 	$(RST2HTML) --stylesheet=rst.css $*.rst $@
 
-$(HTML_DIR)/index.html: index.sh $(filter-out $(HTML_DIR)/index.html,$(HTML_FILES)) | $(HTML_DIR)
+$(HTML_DIR)/index.html: index.sh $(RST_HTML_FILES) | $(HTML_DIR)
 	./index.sh frame >$@
 
 $(HTML_DIR)/%.html: %.html | $(HTML_DIR)