summaryrefslogtreecommitdiff
path: root/po/Makefile
diff options
context:
space:
mode:
authorMichael Vogt <egon@top>2005-11-15 17:46:13 +0100
committerMichael Vogt <egon@top>2005-11-15 17:46:13 +0100
commitf076cd11b25fa5546927a16fc788f19c80dd81f7 (patch)
tree591becde92ec273c7899f3ed263be6e5ae940299 /po/Makefile
parentd1f9288573433421e532cf456b8d271802007e6e (diff)
downloadpython-apt-f076cd11b25fa5546927a16fc788f19c80dd81f7.tar.gz
* missing fixes
* make update-po
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/po/Makefile b/po/Makefile
index 326de934..801a9e20 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -2,15 +2,25 @@
DOMAIN=update-manager
PO_FILES := $(wildcard *.po)
-update-po: $(DOMAIN).pot $(patsubst %.po,%.mo,$(wildcard *.po))
- # update the po files
- for f in $(PO_FILES); do \
- intltool-update -r $${f%.po} -g $(DOMAIN); \
- done
+all: update-po
+# update the pot
$(DOMAIN).pot:
intltool-update -p -g $(DOMAIN)
+# merge the new stuff into the po files
+merge-po: $(PO_FILES)
+ intltool-update -r -g $(DOMAIN);
+
+# create mo from the pos
%.mo : %.po
mkdir -p mo/$(subst .po,,$<)/LC_MESSAGES/
msgfmt $< -o mo/$(subst .po,,$<)/LC_MESSAGES/$(DOMAIN).mo
+
+# dummy target
+update-po: $(DOMAIN).pot merge-po $(patsubst %.po,%.mo,$(wildcard *.po))
+ # update the po files
+ #for f in $(PO_FILES); do \
+ # intltool-update -r $${f%.po} -g $(DOMAIN); \
+ #done
+