summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-05-02 09:34:18 +0000
committerOlivier Blin <oblin@mandriva.com>2007-05-02 09:34:18 +0000
commit52b74143bcf10c4580c3da3d31ad18e99d39daab (patch)
tree909484944c9132993df4df209d5ae33e2f834ba6 /po/Makefile
downloaddraklive-install-52b74143bcf10c4580c3da3d31ad18e99d39daab.tar
draklive-install-52b74143bcf10c4580c3da3d31ad18e99d39daab.tar.gz
draklive-install-52b74143bcf10c4580c3da3d31ad18e99d39daab.tar.bz2
draklive-install-52b74143bcf10c4580c3da3d31ad18e99d39daab.tar.xz
draklive-install-52b74143bcf10c4580c3da3d31ad18e99d39daab.zip
reimport draklive-install in SVN
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/po/Makefile b/po/Makefile
new file mode 100644
index 0000000..cf94c58
--- /dev/null
+++ b/po/Makefile
@@ -0,0 +1,32 @@
+NAME = draklive-install
+localedir = ${prefix}/share/locale
+PL_FILES = ../$(NAME) $(shell find .. -type f -name "*pm")
+
+MERGE_POFILES = $(shell for i in ../../../perl-install/share/po/*.po; do basename $$i; done)
+POFILES = $(wildcard *.po)
+MOFILES = $(POFILES:%.po=%.mo)
+LANGS = $(POFILES:%.po=%)
+
+all: $(NAME).pot $(POFILES) $(MOFILES)
+
+%.mo: %.po
+ msgfmt -o $@ $<
+
+merge: $(NAME).pot
+ @for n in $(MERGE_POFILES); do \
+ echo "Merging $$n"; \
+ msgmerge "$$n" $< > "$$n"t; \
+ mv -f "$$n"t "$$n"; \
+ done
+
+$(NAME).pot:
+ perl_checker -q --generate-pot $@ $(PL_FILES)
+
+install: all
+ for l in $(LANGS); do \
+ install -d $(localedir)/$$l/LC_MESSAGES; \
+ install -m 644 $$l.mo $(localedir)/$$l/LC_MESSAGES/$(NAME).mo; \
+ done
+
+clean:
+ @rm -rf *.mo $(POFILES:%=%t)