]> git.ipfire.org Git - location/libloc.git/blobdiff - Makefile.am
po: Import translation strings
[location/libloc.git] / Makefile.am
index 9f520cc6079bd4b91d7414257673fc7c2d024931..7deecfec192f2c41fec351ec7246a7ad526bf3de 100644 (file)
@@ -78,9 +78,13 @@ AM_V_XSLT_0 = @echo "  XSLT    " $@;
 # ------------------------------------------------------------------------------
 
 .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 > $@
+
 EXTRA_DIST += \
        examples/private-key.pem \
        examples/public-key.pem \