Mercurial > hg > nginx-site
comparison GNUmakefile @ 55:8213f3f1c93d
Updated DTD for modules and made modules documentation to be
validated with xmllint.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 03 Oct 2011 12:07:55 +0000 |
parents | d6fd8dcbe758 |
children | 092d8068f845 |
comparison
equal
deleted
inserted
replaced
54:59969aeeeebc | 55:8213f3f1c93d |
---|---|
17 | sed 's/ *$$//;/^ *$$/N;/\n *$$/D' > $(2) | 17 | sed 's/ *$$//;/^ *$$/N;/\n *$$/D' > $(2) |
18 | 18 |
19 if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2) | 19 if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2) |
20 endef | 20 endef |
21 | 21 |
22 define XMLLINT | |
23 xmllint --noout --valid $1 | |
24 endef | |
22 | 25 |
23 define XSLT | 26 define XSLT |
24 xsltproc -o $3 \ | 27 xsltproc -o $3 \ |
25 $(shell echo $4 \ | 28 $(shell echo $4 \ |
26 | sed -e "s/\([^= ]*\)=\([^= ]*\)/--param \1 \"'\2'\"/g") \ | 29 | sed -e "s/\([^= ]*\)=\([^= ]*\)/--param \1 \"'\2'\"/g") \ |
142 dtd/content.dtd \ | 145 dtd/content.dtd \ |
143 xslt/error.xslt | 146 xslt/error.xslt |
144 $(call XSLT, xslt/error.xslt, $<, $@) | 147 $(call XSLT, xslt/error.xslt, $<, $@) |
145 | 148 |
146 .SECONDARY: | 149 .SECONDARY: |
150 | |
151 $(OUT)/%_module.html: xml/%_module.xml \ | |
152 $(ARTICLE_DEPS) | |
153 $(call XMLLINT, $<) | |
154 $(call XSLT, xslt/article.xslt, $<, $@) | |
147 | 155 |
148 $(OUT)/%.html: xml/%.xml \ | 156 $(OUT)/%.html: xml/%.xml \ |
149 $(ARTICLE_DEPS) | 157 $(ARTICLE_DEPS) |
150 $(call XSLT, xslt/article.xslt, $<, $@) | 158 $(call XSLT, xslt/article.xslt, $<, $@) |
151 | 159 |