summaryrefslogtreecommitdiffstats
path: root/po
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-01-20 11:27:52 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-01-20 11:27:52 +0000
commitc14e063462e668e3e1c4c9d84828c1c3eb57abbb (patch)
tree5262155952289fb4926fdc041f4de6a70f088401 /po
parent1f1f7ae1bcbc56887f519d004e46faefa09bd3ca (diff)
downloaddrakwizard-c14e063462e668e3e1c4c9d84828c1c3eb57abbb.tar
drakwizard-c14e063462e668e3e1c4c9d84828c1c3eb57abbb.tar.gz
drakwizard-c14e063462e668e3e1c4c9d84828c1c3eb57abbb.tar.bz2
drakwizard-c14e063462e668e3e1c4c9d84828c1c3eb57abbb.tar.xz
drakwizard-c14e063462e668e3e1c4c9d84828c1c3eb57abbb.zip
fix build by getting rid of "fake perl code as c code"
Diffstat (limited to 'po')
-rw-r--r--po/Makefile13
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