Mercurial > hg > nginx-site
comparison GNUmakefile @ 28:02fc5e96a305
Moving decision logic from Makefile to XSLT because there is
no simple way to force Gmake to use the $(OUT)/%_module.html
target instead of $(OUT)/%.html target.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 29 Sep 2011 14:14:55 +0000 |
parents | 1201fabeccf7 |
children | 3cc1fbdc53e8 |
comparison
equal
deleted
inserted
replaced
27:1201fabeccf7 | 28:02fc5e96a305 |
---|---|
44 xml/versions.xml \ | 44 xml/versions.xml \ |
45 xslt/article.xslt \ | 45 xslt/article.xslt \ |
46 dtd/article.dtd \ | 46 dtd/article.dtd \ |
47 dtd/content.dtd \ | 47 dtd/content.dtd \ |
48 | 48 |
49 MODULE_XSLT = xml/menu.xml \ | |
50 xml/versions.xml \ | |
51 xslt/module.xslt \ | |
52 xslt/directive.xslt \ | |
53 dtd/module.dtd \ | |
54 dtd/content.dtd \ | |
55 | |
56 include xml/en/GNUmakefile | 49 include xml/en/GNUmakefile |
57 include xml/ja/GNUmakefile | 50 include xml/ja/GNUmakefile |
58 include xml/he/GNUmakefile | 51 include xml/he/GNUmakefile |
59 include xml/ru/GNUmakefile | 52 include xml/ru/GNUmakefile |
60 include xml/tr/GNUmakefile | 53 include xml/tr/GNUmakefile |
95 dtd/article.dtd \ | 88 dtd/article.dtd \ |
96 dtd/content.dtd | 89 dtd/content.dtd |
97 $(call XSLT, xslt/error.xslt, $<, $@) | 90 $(call XSLT, xslt/error.xslt, $<, $@) |
98 | 91 |
99 .SECONDARY: | 92 .SECONDARY: |
100 | |
101 $(OUT)/%_module.html: xml/%_module.xml \ | |
102 $(MODULE_XSLT) | |
103 $(call XSLT, xslt/module.xslt, $<, $@) | |
104 | |
105 | 93 |
106 $(OUT)/%.html: xml/%.xml \ | 94 $(OUT)/%.html: xml/%.xml \ |
107 $(ARTICLE_XSLT) | 95 $(ARTICLE_XSLT) |
108 $(call XSLT, xslt/article.xslt, $<, $@) | 96 $(call XSLT, xslt/article.xslt, $<, $@) |
109 | 97 |