summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-12-17 00:21:09 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-12-17 00:21:09 +0000
commit2b6d115da4ba39a0b30eb6e014684d82101f3265 (patch)
tree7ead586efca6413473c0b880d976f3dc5d7f2849 /po/Makefile
parent8bc2804dffe993ded66f55ec4a6d13d9e8ed0bd7 (diff)
downloadurpmi-2b6d115da4ba39a0b30eb6e014684d82101f3265.tar
urpmi-2b6d115da4ba39a0b30eb6e014684d82101f3265.tar.gz
urpmi-2b6d115da4ba39a0b30eb6e014684d82101f3265.tar.bz2
urpmi-2b6d115da4ba39a0b30eb6e014684d82101f3265.tar.xz
urpmi-2b6d115da4ba39a0b30eb6e014684d82101f3265.zip
no_comment
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/po/Makefile b/po/Makefile
new file mode 100644
index 00000000..5005a700
--- /dev/null
+++ b/po/Makefile
@@ -0,0 +1,21 @@
+POFILES = $(shell ls *.po)
+LOCALEDIR = $(PREFIX)/usr/share/locale
+
+all: $(POFILES)
+
+install: $(POFILES)
+ for i in $(POFILES:%.po=%); do \
+ install -d $(LOCALEDIR)/$$i/LC_MESSAGES ; \
+ cp -f $$i.po $(LOCALEDIR)/$$i/LC_MESSAGES/urpmi.po ; \
+ done
+
+clean:
+ rm -f messages empty.po $(POFILES:%=%t)
+
+$(POFILES): urpmi.pot
+ cp -f $@ $@t
+ msgmerge $@t $< > $@
+ rm $@t
+
+urpmi.pot: ../urpmi
+ xgettext -L C -F -n --keyword=_ -o $@ $<