From 91760b3583bf19a6a3dabff9af85e89b4eb41cc8 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 17 Sep 2007 12:52:20 +0000 Subject: alter build system to add in menu entries strings --- perl-install/standalone/po/Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'perl-install/standalone/po/Makefile') diff --git a/perl-install/standalone/po/Makefile b/perl-install/standalone/po/Makefile index 21118e257..d3ed76960 100644 --- a/perl-install/standalone/po/Makefile +++ b/perl-install/standalone/po/Makefile @@ -4,6 +4,7 @@ NAME = libDrakX-standalone LOCALEDIR = $(DATADIR)/locale PMSFILES = $(STANDALONEPMS_) PMSFILES_HERE = $(wildcard $(PMSFILES:%=../%)) +top_srcdir=.. MAIN_PO_FILES = ../../share/po/libDrakX.pot @@ -23,10 +24,12 @@ merge: $(NAME).pot mv -f "$$n"t $$n ; \ done -$(NAME).pot: $(PMSFILES_HERE) +$(NAME).pot: $(PMSFILES_HERE) POTFILES.in + intltool-update --gettext-package desktopstuff --pot cd .. ; perl_checker -q --generate-pot po/.$@ $(PMSFILES) - xgettext $(MAIN_PO_FILES:%=-x %) -o $@ .$@ - rm -f .$@ + xgettext $(MAIN_PO_FILES:%=-x %) -o ..$@ .$@ + msgcat --use-first ..$@ desktopstuff.pot > $@ + rm -f desktopstuff.pot $(NAME)_tmp.pot .$@ ..$@ install: $(MOFILES) for l in $(LANGS); do \ @@ -34,5 +37,9 @@ install: $(MOFILES) install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME).mo; \ done +POTFILES.in: + (cd .. ; /bin/ls data/*.desktop.in data/*.directory.in) > POTFILES.in + + clean: @rm -rf *.mo $(POFILES:%=%t) -- cgit v1.2.1