comparison GNUmakefile @ 721:81ad082bc837

Simplified things by including books.xslt, download.xslt and security.xslt into article.xslt, and always using article.xslt to generate HTMLs. While here, moved versions.xml from common dependencies to article dependencies. Fixed menu in 404.html by applying templates from menu.xslt, and fixed its dependency on DTD.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 12 Oct 2012 09:10:31 +0000
parents cd0d1f0130db
children b2b10d564893
comparison
equal deleted inserted replaced
720:9934338f83af 721:81ad082bc837
44 endef 44 endef
45 45
46 46
47 COMMON_DEPS = \ 47 COMMON_DEPS = \
48 xml/menu.xml \ 48 xml/menu.xml \
49 xml/versions.xml \
50 xml/i18n.xml \ 49 xml/i18n.xml \
51 dtd/content.dtd \ 50 dtd/content.dtd \
52 xslt/dirname.xslt \ 51 xslt/dirname.xslt \
53 xslt/link.xslt \ 52 xslt/link.xslt \
54 xslt/style.xslt \ 53 xslt/style.xslt \
57 xslt/ga.xslt \ 56 xslt/ga.xslt \
58 xslt/content.xslt \ 57 xslt/content.xslt \
59 58
60 ARTICLE_DEPS = \ 59 ARTICLE_DEPS = \
61 $(COMMON_DEPS) \ 60 $(COMMON_DEPS) \
61 xml/versions.xml \
62 dtd/article.dtd \ 62 dtd/article.dtd \
63 dtd/module.dtd \ 63 dtd/module.dtd \
64 xslt/article.xslt \ 64 xslt/article.xslt \
65 xslt/books.xslt \
66 xslt/directive.xslt \
65 xslt/donate.xslt \ 67 xslt/donate.xslt \
66 xslt/directive.xslt \ 68 xslt/download.xslt \
69 xslt/security.xslt \
67 xslt/versions.xslt \ 70 xslt/versions.xslt \
68 71
69 NEWS_DEPS = \ 72 NEWS_DEPS = \
70 $(COMMON_DEPS) \ 73 $(COMMON_DEPS) \
71 dtd/news.dtd \ 74 dtd/news.dtd \
72 xslt/news.xslt \ 75 xslt/news.xslt \
73
74 DOWNLOAD_DEPS = \
75 $(COMMON_DEPS) \
76 dtd/article.dtd \
77 xslt/download.xslt \
78
79 SECURITY_DEPS = \
80 $(COMMON_DEPS) \
81 dtd/article.dtd \
82 xslt/security.xslt \
83
84 BOOK_DEPS = \
85 $(COMMON_DEPS) \
86 dtd/article.dtd \
87 xslt/books.xslt \
88 76
89 LANGS = en ru cn he ja tr 77 LANGS = en ru cn he ja tr
90 78
91 all: news arx 404 $(LANGS) 79 all: news arx 404 $(LANGS)
92 80
118 $(call XSLT, xslt/news.xslt, $<, $@, YEAR=$(basename $(notdir $@))) 106 $(call XSLT, xslt/news.xslt, $<, $@, YEAR=$(basename $(notdir $@)))
119 107
120 $(OUT)/404.html: \ 108 $(OUT)/404.html: \
121 xml/404.xml \ 109 xml/404.xml \
122 xml/menu.xml \ 110 xml/menu.xml \
123 dtd/article.dtd \ 111 dtd/error.dtd \
124 dtd/content.dtd \ 112 xslt/error.xslt \
125 xslt/ga.xslt \ 113 xslt/dirname.xslt \
126 xslt/error.xslt 114 xslt/menu.xslt \
115 xslt/ga.xslt
127 $(call XSLT, xslt/error.xslt, $<, $@) 116 $(call XSLT, xslt/error.xslt, $<, $@)
128 117
129 $(OUT)/%.html: xml/%.xml \ 118 $(OUT)/%.html: xml/%.xml \
130 $(ARTICLE_DEPS) 119 $(ARTICLE_DEPS)
131 $(call XSLT, xslt/article.xslt, $<, $@) 120 $(call XSLT, xslt/article.xslt, $<, $@)