summaryrefslogtreecommitdiffstats
path: root/perl-install/share/po/Makefile
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-08-23 15:45:29 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-08-23 15:45:29 +0000
commit63a429c5533aab698314be946f597b8c10febd3d (patch)
treec7c465331a434d0c05f89e780010d59b86f9a800 /perl-install/share/po/Makefile
parent673787cbdab4a47b0b3cb987866c57704d7bdee9 (diff)
downloaddrakx-backup-do-not-use-63a429c5533aab698314be946f597b8c10febd3d.tar
drakx-backup-do-not-use-63a429c5533aab698314be946f597b8c10febd3d.tar.gz
drakx-backup-do-not-use-63a429c5533aab698314be946f597b8c10febd3d.tar.bz2
drakx-backup-do-not-use-63a429c5533aab698314be946f597b8c10febd3d.tar.xz
drakx-backup-do-not-use-63a429c5533aab698314be946f597b8c10febd3d.zip
no_comment
Diffstat (limited to 'perl-install/share/po/Makefile')
-rw-r--r--perl-install/share/po/Makefile27
1 files changed, 16 insertions, 11 deletions
diff --git a/perl-install/share/po/Makefile b/perl-install/share/po/Makefile
index 8c7948b42..9f3f08d30 100644
--- a/perl-install/share/po/Makefile
+++ b/perl-install/share/po/Makefile
@@ -1,21 +1,26 @@
-PMSFILES = $(shell find .. -name "*.pm" | grep -v "^../po")
-POFILES = $(wildcard *.po)
+PMSFILES = $(shell find .. -name "*.pm" | grep -v "^../po" | grep -v "^../c/")
+PMSCFILES = $(PMSFILES:%=%_.c)
+POFILES = $(shell ls *.po | grep -v empty.po)
FROMPOFILES = $(POFILES:%.po=%.pm)
all: $(FROMPOFILES)
clean:
- rm -f $(FROMPOFILES)
+ rm -f empty.po $(FROMPOFILES) $(POFILES:%=%t) $(PMSCFILES)
$(FROMPOFILES): %.pm: %.po
./po2perl < $< > $@
-%.po: $(PMSFILES)
- touch $@
- for i in $(PMSFILES); do \
- sed -e 's/#\(.*\)/\/*\1*\//' -e 's/$$/\\n\\/' < $$i > $${i}c; \
- xgettext -j -F -Lc -n --omit-header --keyword=_ --keyword=__ -o $@ $${i}c; \
- rm $${i}c; \
- done
+$(POFILES): empty.po
+ cp -f $@ $@t
+ msgmerge $@t $< > $@
+ rm $@t
+
+empty.po: $(PMSFILES)
+ $(MAKE) $(PMSCFILES);
+ xgettext -F -n --omit-header --keyword=_ --keyword=__ -o empty.po $(PMSCFILES)
+ rm $(PMSCFILES)
+
+$(PMSCFILES): %_.c: %
+ perl -pe 's|#(.*)|/*\1*\/|; s|$$|\\n\\|' $< > $@
-FORCE: \ No newline at end of file