Makefile
changeset 8 d07c0496cdfe
parent 7 6a41484fd3a4
child 9 f40912333875
equal deleted inserted replaced
7:6a41484fd3a4 8:d07c0496cdfe
    32 
    32 
    33 RST_FILES := $(wildcard *.rst)
    33 RST_FILES := $(wildcard *.rst)
    34 TXT_FILES := $(wildcard *.txt)
    34 TXT_FILES := $(wildcard *.txt)
    35 
    35 
    36 HTML_DIR := tips-html
    36 HTML_DIR := tips-html
    37 HTML_FILES := $(patsubst %.rst,$(HTML_DIR)/%.html,$(RST_FILES)) $(HTML_DIR)/index.html $(HTML_DIR)/index-frame.html
    37 RST_HTML_FILES := $(patsubst %.rst,$(HTML_DIR)/%.html,$(RST_FILES))
       
    38 HTML_FILES := $(RST_HTML_FILES) $(HTML_DIR)/index.html $(HTML_DIR)/index-frame.html
    38 TXT__FILES := $(addprefix $(HTML_DIR)/,$(TXT_FILES))
    39 TXT__FILES := $(addprefix $(HTML_DIR)/,$(TXT_FILES))
    39 
    40 
    40 CHM_FILES := $(addprefix $(HTML_DIR)/,chm.hhp chm.hhc chm.stp)
    41 CHM_FILES := $(addprefix $(HTML_DIR)/,chm.hhp chm.hhc chm.stp)
    41 
    42 
    42 DIRS := $(HTML_DIR)
    43 DIRS := $(HTML_DIR)
    51 html: $(HTML_FILES) $(TXT__FILES)
    52 html: $(HTML_FILES) $(TXT__FILES)
    52 
    53 
    53 $(HTML_DIR)/%.html: %.rst rst.css | $(HTML_DIR)
    54 $(HTML_DIR)/%.html: %.rst rst.css | $(HTML_DIR)
    54 	$(RST2HTML) --stylesheet=rst.css $*.rst $@
    55 	$(RST2HTML) --stylesheet=rst.css $*.rst $@
    55 
    56 
    56 $(HTML_DIR)/index.html: index.sh $(filter-out $(HTML_DIR)/index.html,$(HTML_FILES)) | $(HTML_DIR)
    57 $(HTML_DIR)/index.html: index.sh $(RST_HTML_FILES) | $(HTML_DIR)
    57 	./index.sh frame >$@
    58 	./index.sh frame >$@
    58 
    59 
    59 $(HTML_DIR)/%.html: %.html | $(HTML_DIR)
    60 $(HTML_DIR)/%.html: %.html | $(HTML_DIR)
    60 	cp $< $@
    61 	cp $< $@
    61 
    62