From b7f666ff0914b949661506129d78c20ca4987423 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Wed, 2 Oct 2013 11:44:59 +0100 Subject: Add *.po target to cannonicalise .po files received from translators. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b4178bc..be809d5 100644 --- a/Makefile +++ b/Makefile @@ -114,6 +114,11 @@ merge : echo -n msgmerge $(PO)/$$f && $(MSGMERGE) --no-wrap -U $(PO)/$$f $(BUILDDIR)/dnsmasq.pot; \ done +# Cannonicalise .po file. +%.po : + @cd $(BUILDDIR) && $(MAKE) -f $(top)/Makefile dnsmasq.pot + mv $(PO)/$*.po $(PO)/$*.po.orig && $(MSGMERGE) --no-wrap $(PO)/$*.po.orig $(BUILDDIR)/dnsmasq.pot >$(PO)/$*.po; + $(BUILDDIR): mkdir -p $(BUILDDIR) -- cgit v1.2.1