diff GNUmakefile @ 603:e0544f2c4a70

Simplified maintenance of dependencies.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 20 Jul 2012 13:03:52 +0000
parents 89a4e934d207
children b2db67ca29cc
line wrap: on
line diff
--- a/GNUmakefile	Fri Jul 20 13:01:14 2012 +0000
+++ b/GNUmakefile	Fri Jul 20 13:03:52 2012 +0000
@@ -38,84 +38,47 @@
 endef
 
 
-ARTICLE_DEPS =								\
+COMMON_DEPS =								\
 		xml/menu.xml						\
 		xml/versions.xml					\
 		xml/i18n.xml						\
-		dtd/article.dtd						\
 		dtd/content.dtd						\
-		dtd/module.dtd						\
-		xslt/article.xslt					\
-		xslt/dirname.xslt					\
-		xslt/link.xslt						\
-		xslt/style.xslt						\
-		xslt/body.xslt						\
-		xslt/menu.xslt						\
-		xslt/donate.xslt					\
-		xslt/ga.xslt						\
-		xslt/directive.xslt					\
-		xslt/content.xslt					\
-		xslt/versions.xslt
-
-NEWS_DEPS =								\
-		xml/menu.xml						\
-		xml/versions.xml					\
-		xml/i18n.xml						\
-		dtd/news.dtd						\
-		dtd/content.dtd						\
-		xslt/news.xslt						\
 		xslt/dirname.xslt					\
 		xslt/link.xslt						\
 		xslt/style.xslt						\
 		xslt/body.xslt						\
 		xslt/menu.xslt						\
 		xslt/ga.xslt						\
-		xslt/content.xslt
+		xslt/content.xslt					\
+
+ARTICLE_DEPS =								\
+		$(COMMON_DEPS)						\
+		dtd/article.dtd						\
+		dtd/module.dtd						\
+		xslt/article.xslt					\
+		xslt/donate.xslt					\
+		xslt/directive.xslt					\
+		xslt/versions.xslt					\
+
+NEWS_DEPS =								\
+		$(COMMON_DEPS)						\
+		dtd/news.dtd						\
+		xslt/news.xslt						\
 
 DOWNLOAD_DEPS =								\
-		xml/menu.xml						\
-		xml/versions.xml					\
-		xml/i18n.xml						\
+		$(COMMON_DEPS)						\
 		dtd/article.dtd						\
-		dtd/content.dtd						\
 		xslt/download.xslt					\
-		xslt/dirname.xslt					\
-		xslt/link.xslt						\
-		xslt/style.xslt						\
-		xslt/body.xslt						\
-		xslt/menu.xslt						\
-		xslt/ga.xslt						\
-		xslt/content.xslt
 
 SECURITY_DEPS =								\
-		xml/menu.xml						\
-		xml/versions.xml					\
-		xml/i18n.xml						\
+		$(COMMON_DEPS)						\
 		dtd/article.dtd						\
-		dtd/content.dtd						\
 		xslt/security.xslt					\
-		xslt/dirname.xslt					\
-		xslt/link.xslt						\
-		xslt/style.xslt						\
-		xslt/body.xslt						\
-		xslt/menu.xslt						\
-		xslt/ga.xslt						\
-		xslt/content.xslt
 
 BOOK_DEPS =								\
-		xml/menu.xml						\
-		xml/versions.xml					\
-		xml/i18n.xml						\
+		$(COMMON_DEPS)						\
 		dtd/article.dtd						\
-		dtd/content.dtd						\
 		xslt/books.xslt						\
-		xslt/dirname.xslt					\
-		xslt/link.xslt						\
-		xslt/style.xslt						\
-		xslt/body.xslt						\
-		xslt/menu.xslt						\
-		xslt/ga.xslt						\
-		xslt/content.xslt
 
 LANGS =		en ru cn he ja tr