diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-04-25 12:26:16 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-04-25 12:26:16 +0000 |
commit | 126777bc019a54afb4ec51299f2cf9d2841698aa (patch) | |
tree | 97f76e571902ead55ba138f1156a4b4f00b9b779 /perl-install/standalone/po/Makefile | |
parent | f1f67448efc714873378dfeb8279fae68054a90a (diff) | |
download | drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar.gz drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar.bz2 drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar.xz drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.zip |
re-sync after the big svn loss
Diffstat (limited to 'perl-install/standalone/po/Makefile')
-rw-r--r-- | perl-install/standalone/po/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/perl-install/standalone/po/Makefile b/perl-install/standalone/po/Makefile new file mode 100644 index 000000000..21118e257 --- /dev/null +++ b/perl-install/standalone/po/Makefile @@ -0,0 +1,38 @@ +include ../../Makefile.config + +NAME = libDrakX-standalone +LOCALEDIR = $(DATADIR)/locale +PMSFILES = $(STANDALONEPMS_) +PMSFILES_HERE = $(wildcard $(PMSFILES:%=../%)) + +MAIN_PO_FILES = ../../share/po/libDrakX.pot + +POFILES = $(wildcard *.po) +MOFILES = $(POFILES:%.po=%.mo) +LANGS = $(POFILES:%.po=%) + +default: $(MOFILES) + +%.mo: %.po + msgfmt -o $@ $< + +merge: $(NAME).pot + for n in $(POFILES); do \ + echo "Merging $$n"; \ + msgmerge $$n $(NAME).pot > "$$n"t ; \ + mv -f "$$n"t $$n ; \ + done + +$(NAME).pot: $(PMSFILES_HERE) + cd .. ; perl_checker -q --generate-pot po/.$@ $(PMSFILES) + xgettext $(MAIN_PO_FILES:%=-x %) -o $@ .$@ + rm -f .$@ + +install: $(MOFILES) + 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) |