Mercurial > hg > nginx-site
changeset 800:015981070efd
Simplified the new year maintenance.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 27 Dec 2012 13:23:32 +0000 |
parents | 9e5847af3b2d |
children | b95a6d779c89 |
files | GNUmakefile |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/GNUmakefile Wed Dec 26 12:18:18 2012 +0000 +++ b/GNUmakefile Thu Dec 27 13:23:32 2012 +0000 @@ -76,10 +76,12 @@ LANGS = en ru cn he ja tr +YEARS = 2011 2010 2009 + all: news arx 404 $(LANGS) news: $(OUT)/index.html $(OUT)/index.rss -arx: $(OUT)/2011.html $(OUT)/2010.html $(OUT)/2009.html +arx: $(foreach year,$(YEARS),$(OUT)/$(year).html) 404: $(OUT)/404.html @@ -135,9 +137,7 @@ $(call XSLT, xslt/rss.xslt, $<, $@) -$(OUT)/2011.html \ -$(OUT)/2010.html \ -$(OUT)/2009.html: \ +$(foreach year,$(YEARS),$(OUT)/$(year).html): \ xml/index.xml \ $(NEWS_DEPS) $(call XSLT, xslt/news.xslt, $<, $@, YEAR=$(basename $(notdir $@)))