summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--po/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/po/Makefile b/po/Makefile
index 5f594bde..69c6d88c 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -4,8 +4,7 @@ localedir = $(PREFIX)/usr/share/locale
LANGS = $(shell ls *.po | xargs -i basename {} .po )
PGOAL = urpmi
GOALS = $(PGOAL).pot $(foreach a, $(LANGS), $(a).mo)
-
-# $(foreach a, $(LANGS), $($(a).mo))
+POTFILES=../_irpm ../urpm.pm ../urpmf ../urpmi ../urpmi.addmedia ../urpmi.update ../urpmi.removemedia ../urpmq
all: $(GOALS)
@@ -21,11 +20,11 @@ clean:
%.mo: %.po
msgfmt -o $@ $<
-%.pot: POTFILES.in
- ./create_placeholder
- xgettext --default-domain=`basename $@ .pot` --directory=.. \
+%.pot: $(POTFILES)
+ ./create_placeholder $(POTFILES)
+ xgettext --default-domain=`basename $@ .pot` \
--add-comments --keyword=__ --keyword=_ --keyword=N_ \
--keyword=I_ --keyword=i18n \
- --files-from=./POTFILES.in && \
+ placeholder.h && \
mv `basename $@ .pot`.po $@