Makefile
changeset 1907 f4b078cbff20
parent 1902 1dd434abf745
child 1908 0260f8ffef35
equal deleted inserted replaced
1906:6f6d48f88341 1907:f4b078cbff20
    39 
    39 
    40 ################################################################
    40 ################################################################
    41 # Proj dirs/files.
    41 # Proj dirs/files.
    42 
    42 
    43 RST_FILES := $(filter-out HEADER.rst,$(wildcard *.rst))
    43 RST_FILES := $(filter-out HEADER.rst,$(wildcard *.rst))
    44 TXT_FILES := $(wildcard *.txt)
       
    45 
    44 
    46 HTML_DIR := tips-html
    45 HTML_DIR := tips-html
    47 RST_HTML_FILES := $(patsubst %.rst,$(HTML_DIR)/%.html,$(RST_FILES))
    46 RST_HTML_FILES := $(patsubst %.rst,$(HTML_DIR)/%.html,$(RST_FILES))
    48 HTML_FILES := $(RST_HTML_FILES) \
    47 HTML_FILES := $(RST_HTML_FILES) \
    49         $(HTML_DIR)/index.html $(HTML_DIR)/iframe.html
    48         $(HTML_DIR)/index.html $(HTML_DIR)/iframe.html
    50 TXT__FILES := $(addprefix $(HTML_DIR)/,$(TXT_FILES))
       
    51 
    49 
    52 CHM_FILES := $(addprefix $(HTML_DIR)/,chm.hhp chm.hhc chm.stp)
    50 CHM_FILES := $(addprefix $(HTML_DIR)/,chm.hhp chm.hhc chm.stp)
    53 
    51 
    54 DIRS := $(HTML_DIR)
    52 DIRS := $(HTML_DIR)
    55 
    53 
    96 
    94 
    97 .PHONY: all
    95 .PHONY: all
    98 all:
    96 all:
    99 
    97 
   100 .PHONY: html
    98 .PHONY: html
   101 html: $(HTML_FILES) $(TXT__FILES)
    99 html: $(HTML_FILES)
   102 
   100 
   103 $(HTML_DIR)/%.html: %.rst HEADER.rst rst.css rst.tmpl $(MAKEFILE_LIST) | $(HTML_DIR)
   101 $(HTML_DIR)/%.html: %.rst HEADER.rst rst.css rst.tmpl $(MAKEFILE_LIST) | $(HTML_DIR)
   104 	$(RST2HTML) $(RST_FLAGS) --stylesheet=rst.css --template=rst.tmpl $*.rst $@
   102 	$(RST2HTML) $(RST_FLAGS) --stylesheet=rst.css --template=rst.tmpl $*.rst $@
   105 
   103 
   106 $(HTML_DIR)/iframe.html: $(RST_FILES) $(MAKEFILE_LIST) | $(HTML_DIR)
   104 $(HTML_DIR)/iframe.html: $(RST_FILES) $(MAKEFILE_LIST) | $(HTML_DIR)