]> git.ipfire.org Git - oddments/collecty.git/blobdiff - Makefile.am
Auto-generate POTFILES.in and update translations
[oddments/collecty.git] / Makefile.am
index d4e355b95a8d1409af869592d0e7d160381c1154..c561c6ebcf571333a46d55c84968ffb5b5ce11d7 100644 (file)
@@ -45,9 +45,13 @@ noinst_DATA =
 @INTLTOOL_POLICY_RULE@
 
 .PHONY: update-po
-update-po:
+update-po: po/POTFILES.in
        $(MAKE) -C po update-po
 
+po/POTFILES.in: Makefile
+       find $(abs_srcdir)/src | \
+               grep -E "\.(in|py)$$" | sed -e "s@$(abs_srcdir)/@@g" | sort > $@
+
 DISTCHECK_CONFIGURE_FLAGS = \
        --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
        --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \