summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/po/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone/po/Makefile')
-rw-r--r--perl-install/standalone/po/Makefile13
1 files changed, 10 insertions, 3 deletions
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)