MSGMERGE=msgmerge
MSGFMT=msgfmt
-POFILES=po/en_GB.po po/nl.po po/pt_BR.po
+POFILES=po/ca.po po/en_GB.po po/es.po po/nl.po po/pt_BR.po
POTFILE=po/$(DOMAIN).pot
$(POFILES): $(POTFILE)
- $(MSGMERGE) $(top_srcdir)/$@ $< -o $@
+ $(MSGMERGE) $(top_srcdir)/$@ $? -o $@
SUFFIXES += .po .gmo
EXTRA_DIST += $(POFILES) $(POTFILE)
-CLEANFILES += $(POFILES) $(GMOFILES) $(POTFILE)
+CLEANFILES += $(GMOFILES) $(POTFILE)
+# Clean $(POFILES) from build directory but not if that's the same as
+# the source directory.
+po_CLEAN:
+ @if test "$(srcdir)" != .; then \
+ echo rm -f $(POFILES); \
+ rm -f $(POFILES); \
+ fi
+CLEAN_LOCAL += po_CLEAN