summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-04-07 03:06:51 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-04-10 15:40:49 +0200
commit501c0875a070daa6de4ce4cefe719ba8f0e668f7 (patch)
treefea654100a36289e22039e38e75b824c8219f7ae /po/Makefile
parent5c5b80e0ed713494e96996f0ca6da8612c499d60 (diff)
downloadaur-501c0875a070daa6de4ce4cefe719ba8f0e668f7.tar.gz
aur-501c0875a070daa6de4ce4cefe719ba8f0e668f7.tar.xz
Add Makefile to compile ".po" files.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/po/Makefile b/po/Makefile
new file mode 100644
index 00000000..365c5fd2
--- /dev/null
+++ b/po/Makefile
@@ -0,0 +1,44 @@
+DESTDIR = ..
+PREFIX = /web/locale
+
+POFILES = \
+ ca.po \
+ cs.po \
+ da.po \
+ de.po \
+ el_GR.po \
+ es.po \
+ fr.po \
+ he.po \
+ hr.po \
+ hu.po \
+ it.po \
+ nb_NO.po \
+ pl.po \
+ pt.po \
+ ro.po \
+ ru.po \
+ sr.po \
+ tr.po \
+ uk.po \
+ zh_CN.po
+
+MOFILES = ${POFILES:.po=.mo}
+LOCALES = ${MOFILES:.mo=}
+
+all: ${MOFILES}
+
+%.mo: %.po
+ msgfmt -o $@ $<
+
+clean:
+ rm *.mo
+
+install: all
+ for l in ${LOCALES}; do mkdir -p ${DESTDIR}${PREFIX}/$$l/LC_MESSAGES/; done
+ for l in ${LOCALES}; do cp $$l.mo ${DESTDIR}${PREFIX}/$$l/LC_MESSAGES/aur.mo; done
+
+uninstall:
+ for l in ${LOCALES}; do rm -rf ${DESTDIR}${PREFIX}/$$l/LC_MESSAGES/; done
+
+.PHONY: all clean install uninstall