r19174 - htdocs/trunk - Simplify language rules to avoid mistakes when languages are added/deleted

Geert Janssens gjanssens at code.gnucash.org
Sat May 15 11:33:27 EDT 2010


Author: gjanssens
Date: 2010-05-15 11:33:27 -0400 (Sat, 15 May 2010)
New Revision: 19174
Trac: http://svn.gnucash.org/trac/changeset/19174

Modified:
   htdocs/trunk/Makefile
Log:
Simplify language rules to avoid mistakes when languages are added/deleted

Modified: htdocs/trunk/Makefile
===================================================================
--- htdocs/trunk/Makefile	2010-05-15 15:04:54 UTC (rev 19173)
+++ htdocs/trunk/Makefile	2010-05-15 15:33:27 UTC (rev 19174)
@@ -2,6 +2,8 @@
 languages_with_template = ja
 all_languages = ${languages} ${languages_with_template}
 
+.SECONDEXPANSION:
+
 .PHONY: pot mos msgmerge ${all_languages} nmz nmz.lang nmz nmz.onefile
 
 pot: po/POTFILES po/gnucash-htdocs.pot
@@ -20,37 +22,10 @@
 	done
 
 mos: ${all_languages} 
-de: po/de.po
-	msgfmt po/de.po -o de/LC_MESSAGES/gnucash-htdocs.mo
 
-es: po/es.po
-	msgfmt po/es.po -o es/LC_MESSAGES/gnucash-htdocs.mo
+${all_languages}: po/$$@.po
+	msgfmt $< -o $@/LC_MESSAGES/gnucash-htdocs.mo
 
-fr: po/fr.po
-	msgfmt po/fr.po -o fr/LC_MESSAGES/gnucash-htdocs.mo
-
-it: po/it.po
-	msgfmt po/it.po -o it/LC_MESSAGES/gnucash-htdocs.mo
-
-ja: po/ja.po
-	msgfmt po/ja.po -o ja/LC_MESSAGES/gnucash-htdocs.mo
-
-nb: po/nb.po
-	msgfmt po/nb.po -o nb/LC_MESSAGES/gnucash-htdocs.mo
-
-nl: po/nl.po
-	msgfmt po/nl.po -o nl/LC_MESSAGES/gnucash-htdocs.mo
-
-pl: po/pl.po
-	msgfmt po/pl.po -o pl/LC_MESSAGES/gnucash-htdocs.mo
-
-pt_PT: po/pt_PT.po
-	msgfmt po/pt_PT.po -o pt_PT/LC_MESSAGES/gnucash-htdocs.mo
-
-zh_CN: po/zh_CN.po
-	msgfmt po/zh_CN.po -o zh_CN/LC_MESSAGES/gnucash-htdocs.mo
-
-
 ####################################################################
 #
 # Code to build the Namazu templates



More information about the gnucash-changes mailing list