summaryrefslogtreecommitdiffstats
path: root/po
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-09-25 21:22:28 +0000
committerDaouda Lo <daouda@mandriva.com>2004-09-25 21:22:28 +0000
commitf8b31951e0cd02f3a090831ce5ff1354616d3943 (patch)
tree7c36ecaa101bc5605c9d6fa5331f4a7d02bd1180 /po
parenta67429ba5cb163a7d9a44e06bb0b978c3b90688f (diff)
downloadmgaonline-f8b31951e0cd02f3a090831ce5ff1354616d3943.tar
mgaonline-f8b31951e0cd02f3a090831ce5ff1354616d3943.tar.gz
mgaonline-f8b31951e0cd02f3a090831ce5ff1354616d3943.tar.bz2
mgaonline-f8b31951e0cd02f3a090831ce5ff1354616d3943.tar.xz
mgaonline-f8b31951e0cd02f3a090831ce5ff1354616d3943.zip
- new po Makefile
Diffstat (limited to 'po')
-rw-r--r--po/Makefile19
1 files changed, 9 insertions, 10 deletions
diff --git a/po/Makefile b/po/Makefile
index 91e94cd5..95c68108 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -1,15 +1,17 @@
# Installation directories
localedir = $(PREFIX)/usr/share/locale
-LANGS = $(shell ls *.po | xargs -i basename {} .po )
PGOAL = mdkonline
-GOALS = $(foreach a, $(LANGS), $(a).mo)
-PL_FILES = ../mdkonline ../mdkupdate ../mdkapplet ../mdkonline_tui
+PL_FILES = $(shell cat POTFILES.in | sed 's,^,../,' )
POFILES = $(shell ls *.po)
+PL_CFILES = $(PL_FILES:%=%_.c)
+POFILES = $(shell ls *.po)
+MOFILES = $(POFILES:%.po=%.mo)
+LANGS = $(POFILES:%.po=%)
-# $(foreach a, $(LANGS), $($(a).mo))
+GOALS = $(PGOAL).pot $(MOFILES)
all: $(GOALS)
@@ -20,16 +22,13 @@ install: all
done
clean:
- rm -f *~ *.[oas] *.mo $(GOALS) TAGS
+ rm -f *~ *.[oas] *.mo $(GOALS) TAGS $(MOFILES) $(PL_CFILES)
%.mo: %.po
msgfmt -o $@ $<
-%.pot: $(PL_FILES)
- xgettext -F -n --add-comments='-PO' --keyword=__ --keyword=_ \
- --keyword=N_ --keyword=N \
- --keyword=I_ --keyword=i18n \
- --language=perl -o $@ $(PL_FILES)
+%.pot: $(PL_CFILES) $(CFILES)
+ perl_checker -q --generate-pot $(PGOAL).pot $(PL_FILES)
merge: $(PGOAL).pot
@for n in $(POFILES); do \