summaryrefslogtreecommitdiff
path: root/po/part.make
diff options
context:
space:
mode:
Diffstat (limited to 'po/part.make')
-rw-r--r--po/part.make16
1 files changed, 16 insertions, 0 deletions
diff --git a/po/part.make b/po/part.make
new file mode 100644
index 0000000..551c454
--- /dev/null
+++ b/po/part.make
@@ -0,0 +1,16 @@
+PARTS += ~
+POTS += .~.pot
+
+mo/~.pot: .~.pot .common.pot
+ $S mkdir -p mo
+ $S msgcat $^ $o
+
+mo/~_%.po: %.po mo/~.pot
+ $S cp $*.po $@.tmp
+ $S msgmerge --quiet --previous $@.tmp mo/~.pot -o $@.tmp
+ $S $f
+
+.PRECIOUS: mo/~.pot mo/~_%.po
+
+# (end of part.make)
+# dependencies of .~.pot will follow (from sed)