Generate index.html without "target=article" so links open in current browser tab.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 04 Nov 2011 16:12:20 +0200
changeset 9 f40912333875
parent 8 d07c0496cdfe
child 10 992d7c458bbb
Generate index.html without "target=article" so links open in current browser tab.
Makefile
--- a/Makefile	Fri Nov 04 15:58:36 2011 +0200
+++ b/Makefile	Fri Nov 04 16:12:20 2011 +0200
@@ -35,7 +35,8 @@
 
 HTML_DIR := tips-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
+HTML_FILES := $(patsubst %.rst,$(HTML_DIR)/%.html,$(RST_FILES)) \
+        $(HTML_DIR)/index.html $(HTML_DIR)/frame.html $(HTML_DIR)/frame-index.html
 TXT__FILES := $(addprefix $(HTML_DIR)/,$(TXT_FILES))
 
 CHM_FILES := $(addprefix $(HTML_DIR)/,chm.hhp chm.hhc chm.stp)
@@ -54,8 +55,11 @@
 $(HTML_DIR)/%.html: %.rst rst.css | $(HTML_DIR)
 	$(RST2HTML) --stylesheet=rst.css $*.rst $@
 
+$(HTML_DIR)/frame-index.html: index.sh $(RST_HTML_FILES) | $(HTML_DIR)
+	./index.sh frame >$@
+
 $(HTML_DIR)/index.html: index.sh $(RST_HTML_FILES) | $(HTML_DIR)
-	./index.sh frame >$@
+	./index.sh html >$@
 
 $(HTML_DIR)/%.html: %.html | $(HTML_DIR)
 	cp $< $@
@@ -77,7 +81,7 @@
 	./chm-hhc.sh >$@
 
 $(HTML_DIR)/index-chm.html: index.sh | $(HTML_DIR)
-	./index.sh chm >$@
+	./index.sh html >$@
 
 ################################################################
 # Init targets.