# HG changeset patch # User Ruslan Ermilov # Date 1356614612 0 # Node ID 015981070efd4cdb093a62178de438fe3c755627 # Parent 9e5847af3b2d8b9d6e3f7f531d19f525d0d0e5ef Simplified the new year maintenance. diff -r 9e5847af3b2d -r 015981070efd GNUmakefile --- 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 $@)))