]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
po: Emit a warning when creating a tarball without POT file.
authorBruno Haible <bruno@clisp.org>
Sat, 11 Apr 2020 21:00:21 +0000 (23:00 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 11 Apr 2020 21:00:21 +0000 (23:00 +0200)
* gettext-runtime/po/Makefile.in.in (dist2): Emit a warning when the POT file
does not exist.
* gettext-tools/examples/hello-*/po/Makefile.am (distdir1): Likewise.

22 files changed:
gettext-runtime/po/Makefile.in.in
gettext-tools/examples/hello-c++-qt/po/Makefile.am
gettext-tools/examples/hello-c++-wxwidgets/po/Makefile.am
gettext-tools/examples/hello-clisp/po/Makefile.am
gettext-tools/examples/hello-csharp-forms/po/Makefile.am
gettext-tools/examples/hello-csharp/po/Makefile.am
gettext-tools/examples/hello-gawk/po/Makefile.am
gettext-tools/examples/hello-guile/po/Makefile.am
gettext-tools/examples/hello-java-awt/po/Makefile.am
gettext-tools/examples/hello-java-qtjambi/po/Makefile.am
gettext-tools/examples/hello-java-swing/po/Makefile.am
gettext-tools/examples/hello-java/po/Makefile.am
gettext-tools/examples/hello-librep/po/Makefile.am
gettext-tools/examples/hello-pascal/po/Makefile.am
gettext-tools/examples/hello-perl/po/Makefile.am
gettext-tools/examples/hello-php/po/Makefile.am
gettext-tools/examples/hello-python/po/Makefile.am
gettext-tools/examples/hello-sh/po/Makefile.am
gettext-tools/examples/hello-smalltalk/po/Makefile.am
gettext-tools/examples/hello-tcl-tk/po/Makefile.am
gettext-tools/examples/hello-tcl/po/Makefile.am
gettext-tools/examples/hello-ycp/po/Makefile.am

index de980e040af81b825410780a97ae05a363927f4c..baa8e707f9ea6bb0327b2d2e1800187aa950a2a5 100644 (file)
@@ -415,12 +415,17 @@ dist distdir:
        @$(MAKE) dist2
 # This is a separate target because 'update-po' must be executed before.
 dist2: $(srcdir)/stamp-po $(DISTFILES)
-       dists="$(DISTFILES)"; \
+       @dists="$(DISTFILES)"; \
        if test "$(PACKAGE)" = "gettext-tools"; then \
          dists="$$dists Makevars.template"; \
        fi; \
        if test -f $(srcdir)/$(DOMAIN).pot; then \
          dists="$$dists $(DOMAIN).pot stamp-po"; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the contents of the POTFILES.in file and the XGETTEXT_OPTIONS in the Makevars file." 1>&2;; \
+         esac; \
        fi; \
        if test -f $(srcdir)/ChangeLog; then \
          dists="$$dists ChangeLog"; \
index 12ed7f84649ee10b33bab8f42025da8233524ecd..5481307ce1ef4abbe4249f34ee90af65bde0383e 100644 (file)
@@ -294,11 +294,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(QMFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index aaf933b3a09402719c3e1a3daf8ebc394509cf0f..dd5c9f7bcb0404d5ab245d83b1db2e244d167024 100644 (file)
@@ -359,11 +359,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index 3b5ad6b6a6c0e1b0717b60c1558869f2f90bd211..89110a52c0eb626a0085bd9b0f9dfd18a8ce6b35 100644 (file)
@@ -353,11 +353,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index 061508d05a94552a75af530a7fd941c5c2208be9..e5575aa0c69f5a9110c24da3637a9c314ec0dd51 100644 (file)
@@ -284,11 +284,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(RESOURCESDLLFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index 061508d05a94552a75af530a7fd941c5c2208be9..e5575aa0c69f5a9110c24da3637a9c314ec0dd51 100644 (file)
@@ -284,11 +284,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(RESOURCESDLLFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index 15f3a8e43b7f6d969bf61121e2723bf175c48135..42da1e71ae3d5a182c5fedb2b104b302b2d9b836 100644 (file)
@@ -353,11 +353,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index a3ab72123bdfc2807e45cff5618c3605e636fbd6..e8426223af9741d736f0b8b590d90123b0dac931 100644 (file)
@@ -353,11 +353,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index c9b83488cd06bb037e87396e77c016deb6c3514c..6f500d5224fe504bd8db7e4d660c58ea2a922780 100644 (file)
@@ -246,11 +246,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(DOMAIN).properties $(PROPE
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index c9b83488cd06bb037e87396e77c016deb6c3514c..6f500d5224fe504bd8db7e4d660c58ea2a922780 100644 (file)
@@ -246,11 +246,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(DOMAIN).properties $(PROPE
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index c9b83488cd06bb037e87396e77c016deb6c3514c..6f500d5224fe504bd8db7e4d660c58ea2a922780 100644 (file)
@@ -246,11 +246,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(DOMAIN).properties $(PROPE
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index c9b83488cd06bb037e87396e77c016deb6c3514c..6f500d5224fe504bd8db7e4d660c58ea2a922780 100644 (file)
@@ -246,11 +246,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(DOMAIN).properties $(PROPE
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index bdcecbc27e5f37f0656bba443bac7f3806e8bd3a..cdfe4986ef129278ff5a47dfbb54056b44ae9749 100644 (file)
@@ -353,11 +353,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index ffd3e5f4b840613481bf692fdffb31c010cbe59c..fc71ab5325c93740bff866dacb13a8f87ab10257 100644 (file)
@@ -353,11 +353,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index fab93963dc61ef2445fcc88e182da0ad5553170d..fd4871384fad098ad8567fa68b6fcbc1b1150170 100644 (file)
@@ -363,11 +363,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index 268db7c9a1d45ff7eca930baeb91b7bc7673e064..c0787d6cbe429cd907e4b7e01510df03dba54221 100644 (file)
@@ -353,11 +353,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index fd0dbca8fcee99cdd9eed10ce1059afe77f31c07..7272c55670d3c69fb4eec7ac0a92c393c498ac82 100644 (file)
@@ -353,11 +353,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index 6b661478cac6eb00411d79aa5f9f79d74d54dbe7..1a7c1d5e25060548c43f2d6d00eb4ccc21f9fdc1 100644 (file)
@@ -353,11 +353,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index cc1e23e6eacc05d545873745d1187037e5152191..0faf3d82a0666354b54d1d3e223ac86293d9d50b 100644 (file)
@@ -353,11 +353,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index e6cc705df76c8bd566e1a5cf33ea1aaefa47468a..d98c4ec91f663fefc71fed5375d7d31c40befdef 100644 (file)
@@ -271,11 +271,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(MSGFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index e6cc705df76c8bd566e1a5cf33ea1aaefa47468a..d98c4ec91f663fefc71fed5375d7d31c40befdef 100644 (file)
@@ -271,11 +271,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(MSGFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile
index 90b13d652e13b7f3438a266fa42289d14f5a6faf..94f2563201a6784e8cb056a6c5a539b82b98c8b6 100644 (file)
@@ -353,11 +353,16 @@ EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(GMOFILES)
 distdir1:
        $(MAKE) update-po
        $(MAKE) $(srcdir)/stamp-po
-       if test -f $(srcdir)/$(DOMAIN).pot; then \
+       @if test -f $(srcdir)/$(DOMAIN).pot; then \
          for file in $(DOMAIN).pot stamp-po; do \
            if test -f $$file; then d=.; else d=$(srcdir); fi; \
            cp -p $$d/$$file $(distdir)/$$file || exit 1; \
          done; \
+       else \
+         case $(XGETTEXT) in \
+           :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \
+           *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the POTFILES and the XGETTEXT_OPTIONS in the Makefile.am file." 1>&2;; \
+         esac; \
        fi
 
 update-po: Makefile