Added the Catalan translation from http://translationproject.org
[pspp-builds.git] / po / automake.mk
index e7b130963647ebf9e672570d381ae7d0b970269a..ab26aaca1180165706ad360ce572764344c68bed 100644 (file)
@@ -4,7 +4,7 @@ XGETTEXT=xgettext
 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/nl.po po/pt_BR.po
 
 POTFILE=po/$(DOMAIN).pot
 
@@ -52,5 +52,13 @@ uninstall-hook:
 
 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