equal
deleted
inserted
replaced
25 RST2HTML = rst2html |
25 RST2HTML = rst2html |
26 ifeq '$(host_os)' 'cygwin' |
26 ifeq '$(host_os)' 'cygwin' |
27 RST2HTML = rst2html.py |
27 RST2HTML = rst2html.py |
28 endif |
28 endif |
29 |
29 |
|
30 RST_WARNING_FLAGS := --halt warning |
|
31 RST_FLAGS := --strip-comments |
|
32 RST_FLAGS += $(RST_WARNING_FLAGS) |
|
33 |
30 ################################################################ |
34 ################################################################ |
31 # Proj dirs/files. |
35 # Proj dirs/files. |
32 |
36 |
33 RST_FILES := $(wildcard *.rst) |
37 RST_FILES := $(wildcard *.rst) |
34 TXT_FILES := $(wildcard *.txt) |
38 TXT_FILES := $(wildcard *.txt) |
51 |
55 |
52 .PHONY: html |
56 .PHONY: html |
53 html: $(HTML_FILES) $(TXT__FILES) |
57 html: $(HTML_FILES) $(TXT__FILES) |
54 |
58 |
55 $(HTML_DIR)/%.html: %.rst rst.css | $(HTML_DIR) |
59 $(HTML_DIR)/%.html: %.rst rst.css | $(HTML_DIR) |
56 $(RST2HTML) --stylesheet=rst.css $*.rst $@ |
60 $(RST2HTML) $(RST_FLAGS) --stylesheet=rst.css $*.rst $@ |
57 |
61 |
58 $(HTML_DIR)/frame-index.html: index.sh $(RST_HTML_FILES) | $(HTML_DIR) |
62 $(HTML_DIR)/frame-index.html: index.sh $(RST_HTML_FILES) | $(HTML_DIR) |
59 ./index.sh frame >$@ |
63 ./index.sh frame >$@ |
60 |
64 |
61 $(HTML_DIR)/index.html: index.sh $(RST_HTML_FILES) | $(HTML_DIR) |
65 $(HTML_DIR)/index.html: index.sh $(RST_HTML_FILES) | $(HTML_DIR) |