summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
Diffstat (limited to 'po')
-rw-r--r--po/Makefile.in.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/po/Makefile.in.in b/po/Makefile.in.in
index 2426e767c..2c31b7d06 100644
--- a/po/Makefile.in.in
+++ b/po/Makefile.in.in
@@ -156,8 +156,16 @@ maintainer-clean: distclean
@echo "it deletes files that may require special tools to rebuild."
rm -f $(GMOFILES)
+# generate POTFILES.in before updating po-files
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
dist distdir:
+ (cd $(top_srcdir); \
+ head -3 po/POTFILES.in > \
+ /tmp/POTFILES.in && \
+ find src -name "*.[chy]" | \
+ xargs grep -l '[^A-Za-z_]_(' | \
+ grep -v src/xine-engine/xineintl.h >> /tmp/POTFILES.in && \
+ cp /tmp/POTFILES.in po/)
$(MAKE) update-po
@$(MAKE) dist2
# This is a separate target because 'update-po' must be executed before.