chiark / gitweb /
i18n: Machinery in po/
[dgit.git] / po / part.make
diff --git a/po/part.make b/po/part.make
new file mode 100644 (file)
index 0000000..551c454
--- /dev/null
@@ -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)