comparison GNUmakefile @ 800:015981070efd

Simplified the new year maintenance.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 27 Dec 2012 13:23:32 +0000
parents 7951fb38b4b3
children 26b8f81ede9b
comparison
equal deleted inserted replaced
799:9e5847af3b2d 800:015981070efd
74 dtd/news.dtd \ 74 dtd/news.dtd \
75 xslt/news.xslt \ 75 xslt/news.xslt \
76 76
77 LANGS = en ru cn he ja tr 77 LANGS = en ru cn he ja tr
78 78
79 YEARS = 2011 2010 2009
80
79 all: news arx 404 $(LANGS) 81 all: news arx 404 $(LANGS)
80 82
81 news: $(OUT)/index.html $(OUT)/index.rss 83 news: $(OUT)/index.html $(OUT)/index.rss
82 arx: $(OUT)/2011.html $(OUT)/2010.html $(OUT)/2009.html 84 arx: $(foreach year,$(YEARS),$(OUT)/$(year).html)
83 404: $(OUT)/404.html 85 404: $(OUT)/404.html
84 86
85 87
86 DIRIND_DEPS = 88 DIRIND_DEPS =
87 89
133 $(NEWS_DEPS) \ 135 $(NEWS_DEPS) \
134 xslt/rss.xslt 136 xslt/rss.xslt
135 $(call XSLT, xslt/rss.xslt, $<, $@) 137 $(call XSLT, xslt/rss.xslt, $<, $@)
136 138
137 139
138 $(OUT)/2011.html \ 140 $(foreach year,$(YEARS),$(OUT)/$(year).html): \
139 $(OUT)/2010.html \
140 $(OUT)/2009.html: \
141 xml/index.xml \ 141 xml/index.xml \
142 $(NEWS_DEPS) 142 $(NEWS_DEPS)
143 $(call XSLT, xslt/news.xslt, $<, $@, YEAR=$(basename $(notdir $@))) 143 $(call XSLT, xslt/news.xslt, $<, $@, YEAR=$(basename $(notdir $@)))
144 144
145 $(OUT)/404.html: \ 145 $(OUT)/404.html: \