diff options
Diffstat (limited to 'po/Makefile')
-rw-r--r-- | po/Makefile | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/po/Makefile b/po/Makefile index f6128121..47b4e6ca 100644 --- a/po/Makefile +++ b/po/Makefile @@ -6,17 +6,12 @@ PGOAL = drakwizard # perl files with translatable strings PL_FILES = ../drakwizard.pl $(shell find .. -type f -name "*pm") -PL_CFILES = $(PL_FILES:%=%_.c) - POFILES = $(shell ls *.po) MOFILES = $(POFILES:%.po=%.mo) LANGS = $(POFILES:%.po=%) all: $(PGOAL).pot $(MOFILES) -$(PL_CFILES): %_.c: % - ./fake_c.pl $< > $@ - %.mo: %.po msgfmt -o $@ $< @@ -27,11 +22,11 @@ merge: $(PGOAL).pot mv -f "$$n"t "$$n"; \ done -$(PGOAL).pot: $(PL_CFILES) $(WIZCFILES) +$(PGOAL).pot: $(WIZCFILES) xgettext -F -n --add-comments='I18N' \ --keyword=_ --keyword=__ --keyword=N_ --keyword=N \ - --language=C -o $@ $(PL_CFILES) $(WIZCFILES) - @rm -rf $(PL_CFILES) $(WIZCFILES) + -o $@ $(PL_FILES) $(WIZCFILES) + @rm -rf $(WIZCFILES) install: all for l in $(LANGS); do \ @@ -40,5 +35,5 @@ install: all done clean: - @rm -rf *.mo $(POFILES:%=%t) $(PL_CFILES) $(WIZCFILES) $(PGOAL).pot + @rm -rf *.mo $(POFILES:%=%t) $(WIZCFILES) $(PGOAL).pot |