Makefile
changeset 68 46721724e2a3
parent 67 78cb29831702
child 69 f82b136921b7
equal deleted inserted replaced
67:78cb29831702 68:46721724e2a3
    32 ifeq '$(host_os)' 'cygwin'
    32 ifeq '$(host_os)' 'cygwin'
    33   RST2HTML := rst2html.py
    33   RST2HTML := rst2html.py
    34 endif
    34 endif
    35 
    35 
    36 RST_WARNING_FLAGS := --halt warning
    36 RST_WARNING_FLAGS := --halt warning
    37 RST_FLAGS := --strip-comments
    37 RST_RENDER_FLAGS := --strip-comments --embed-stylesheet --no-xml-declaration --math-output=MathJax
    38 RST_FLAGS += $(RST_WARNING_FLAGS)
    38 RST_FLAGS := $(RST_WARNING_FLAGS) $(RST_RENDER_FLAGS)
    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))
    93 all:
    93 all:
    94 
    94 
    95 .PHONY: html
    95 .PHONY: html
    96 html: $(HTML_FILES) $(TXT__FILES)
    96 html: $(HTML_FILES) $(TXT__FILES)
    97 
    97 
    98 $(HTML_DIR)/%.html: %.rst HEADER.rst rst.css $(MAKEFILE_LIST) | $(HTML_DIR)
    98 $(HTML_DIR)/%.html: %.rst HEADER.rst rst.css rst.tmpl $(MAKEFILE_LIST) | $(HTML_DIR)
    99 	$(RST2HTML) $(RST_FLAGS) --stylesheet=rst.css $*.rst $@
    99 	$(RST2HTML) $(RST_FLAGS) --stylesheet=rst.css --template=rst.tmpl $*.rst $@
   100 
   100 
   101 $(HTML_DIR)/iframe.html: $(RST_FILES) $(MAKEFILE_LIST) | $(HTML_DIR)
   101 $(HTML_DIR)/iframe.html: $(RST_FILES) $(MAKEFILE_LIST) | $(HTML_DIR)
   102 	{ \
   102 	{ \
   103 echo '<html><head>'; \
   103 echo '<html><head>'; \
   104 echo '<meta charset="utf-8">'; \
   104 echo '<meta charset="utf-8">'; \