summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>2002-08-12 18:50:09 +0000
committerPablo Saratxaga <pablo@mandriva.com>2002-08-12 18:50:09 +0000
commit18bd1e8c9fbcf3ebee7238186ea885a1e5cb6c86 (patch)
tree0d3db12f0143d91fb7916c48383fc73bfbb98315 /po/Makefile
parent9edfbeed6ce717780b86b2f3d5ea436f27975079 (diff)
downloadmgaonline-18bd1e8c9fbcf3ebee7238186ea885a1e5cb6c86.tar
mgaonline-18bd1e8c9fbcf3ebee7238186ea885a1e5cb6c86.tar.gz
mgaonline-18bd1e8c9fbcf3ebee7238186ea885a1e5cb6c86.tar.bz2
mgaonline-18bd1e8c9fbcf3ebee7238186ea885a1e5cb6c86.tar.xz
mgaonline-18bd1e8c9fbcf3ebee7238186ea885a1e5cb6c86.zip
Added Tamil file and copied pot generation from other modules
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/po/Makefile b/po/Makefile
index f3ae5a31..4b9e8204 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -5,6 +5,9 @@ LANGS = $(shell ls *.po | xargs -i basename {} .po )
PGOAL = mdkonline
GOALS = $(PGOAL).pot $(foreach a, $(LANGS), $(a).mo)
+PL_FILES = ../mdkonline ../mdkupdate
+PL_CFILES = $(PL_FILES:%=%_.c)
+
# $(foreach a, $(LANGS), $($(a).mo))
all: $(GOALS)
@@ -21,10 +24,12 @@ clean:
%.mo: %.po
msgfmt -o $@ $<
-%.pot: POTFILES.in
- xgettext --default-domain=`basename $@ .pot` --directory=.. \
- --add-comments --keyword=__ --keyword=_ --keyword=N_ \
- --keyword=I_ --keyword=i18n \
- --files-from=./POTFILES.in && \
- mv `basename $@ .pot`.po $@
+$(PL_CFILES): %_.c: %
+ ./fake_c.pl $< > $@
+
+%.pot: $(PL_CFILES)
+ xgettext -F -n --add-comments='-PO' --keyword=__ --keyword=_ \
+ --keyword=N_ --keyword=I_ --keyword=i18n \
+ --language=C -o $@ $(PL_CFILES)
+ @rm -rf $(PL_CFILES)