From 126777bc019a54afb4ec51299f2cf9d2841698aa Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 25 Apr 2007 12:26:16 +0000 Subject: re-sync after the big svn loss --- perl-install/install/share/po/Makefile | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 perl-install/install/share/po/Makefile (limited to 'perl-install/install/share/po/Makefile') diff --git a/perl-install/install/share/po/Makefile b/perl-install/install/share/po/Makefile new file mode 100644 index 000000000..133373615 --- /dev/null +++ b/perl-install/install/share/po/Makefile @@ -0,0 +1,36 @@ +NAME = DrakX +LOCALEDIR = ${prefix}/share/locale +PMSFILES = *.pm share/meta-task/compssUsers.pl* +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 share/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) -- cgit v1.2.1