changeset 30003:e709ce5b5d34

Simplify the evaluation of the lang-def template: Use the language variable directly in the template instead of passing the language variable as a parameter to $(call).
author diego
date Wed, 16 Dec 2009 11:59:53 +0000
parents 1d3f9930c663
children dabd6ed79efe
files DOCS/xml/Makefile
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/xml/Makefile	Wed Dec 16 11:11:31 2009 +0000
+++ b/DOCS/xml/Makefile	Wed Dec 16 11:59:53 2009 +0000
@@ -37,19 +37,19 @@
 	sh configure
 
 define lang-def
-html-chunked-$(1) html-single-$(1): $(HTML)/$(1) $(CONFIGURE_GENERATED)
+html-chunked-$(lang) html-single-$(lang): $(HTML)/$(lang) $(CONFIGURE_GENERATED)
 
-html-chunked-$(1):
-	$(MAKE) HTMLDIR=../$$< -C $(1) html-chunked
+html-chunked-$(lang):
+	$(MAKE) HTMLDIR=../$$< -C $(lang) html-chunked
 
-html-single-$(1):
-	$(MAKE) HTMLDIR=../$$< -C $(1) html-single
+html-single-$(lang):
+	$(MAKE) HTMLDIR=../$$< -C $(lang) html-single
 
-xmllint-$(1): xmllint.sh
-	$(MAKE) -C $(1) xmllint
+xmllint-$(lang): xmllint.sh
+	$(MAKE) -C $(lang) xmllint
 endef
 
-$(foreach lang, $(DOC_LANG_ALL),$(eval $(call lang-def,$(lang))))
+$(foreach lang, $(DOC_LANG_ALL),$(eval $(lang-def)))
 
 clean:
 	-rm -rf $(HTML)