summaryrefslogtreecommitdiff
path: root/data/locale/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'data/locale/Makefile')
-rw-r--r--data/locale/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/data/locale/Makefile b/data/locale/Makefile
new file mode 100644
index 0000000..b1821e4
--- /dev/null
+++ b/data/locale/Makefile
@@ -0,0 +1,28 @@
+MSGFMT=msgfmt
+
+CLEANFILES = */LC_MESSAGES/messages.mo
+
+PHP_LOCALE_DE_PO = de/LC_MESSAGES/messages.po
+PHP_LOCALE_DE_MO = de/LC_MESSAGES/messages.mo
+PHP_LOCALE_FR_PO = fr/LC_MESSAGES/messages.po
+PHP_LOCALE_FR_MO = fr/LC_MESSAGES/messages.mo
+PHP_LOCALE_NL_PO = nl/LC_MESSAGES/messages.po
+PHP_LOCALE_NL_MO = nl/LC_MESSAGES/messages.mo
+PHP_LOCALE_IT_PO = it/LC_MESSAGES/messages.po
+PHP_LOCALE_IT_MO = it/LC_MESSAGES/messages.mo
+PHP_LOCALE_ES_PO = es/LC_MESSAGES/messages.po
+PHP_LOCALE_ES_MO = es/LC_MESSAGES/messages.mo
+
+MO = $(PHP_LOCALE_DE_MO) \
+ $(PHP_LOCALE_FR_MO) \
+ $(PHP_LOCALE_NL_MO) \
+ $(PHP_LOCALE_IT_MO) \
+ $(PHP_LOCALE_ES_MO) \
+
+all: $(MO)
+
+$(MO):
+ $(MSGFMT) -o $@ $(@:%.mo=%.po)
+
+clean:
+ rm $(CLEANFILES)