diff GNUmakefile @ 47:0b218409e2e7

Merged targets for creating past years news.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 03 Oct 2011 06:54:08 +0000
parents 61564cf3d4d2
children 28acb1a609cb
line wrap: on
line diff
--- a/GNUmakefile	Sun Oct 02 13:44:01 2011 +0000
+++ b/GNUmakefile	Mon Oct 03 06:54:08 2011 +0000
@@ -129,16 +129,11 @@
 	$(call XSLT, xslt/rss.xslt, $<, $@)
 
 
-$(OUT)/2010.html:							\
-		xml/index.xml						\
-		$(NEWS_DEPS)
-	$(call XSLT, xslt/news.xslt, $<, $@, YEAR=2010)
-
-
+$(OUT)/2010.html							\
 $(OUT)/2009.html:							\
 		xml/index.xml						\
 		$(NEWS_DEPS)
-	$(call XSLT, xslt/news.xslt, $<, $@, YEAR=2009)
+	$(call XSLT, xslt/news.xslt, $<, $@, YEAR=$(basename $(notdir $@)))
 
 $(OUT)/404.html:							\
 		xml/404.xml						\