po/Makefile.in.in: fix make -q problem
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 11 Aug 2011 17:46:26 +0000 (10:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 11 Aug 2011 18:22:09 +0000 (11:22 -0700)
* build-aux/po/Makefile.in.in (check-macro-version): Remove this
rule, since there's no file named 'check-macro-version' and its
use as a file breaks make -q.
(all): Don't depend on check-macro-version.
(CHECK_MACRO_VERSION): New macro.
(stamp-po): Use it.

ChangeLog
build-aux/po/Makefile.in.in

index d020dd5..3a798cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
 
+       po/Makefile.in.in: fix make -q problem
+       * build-aux/po/Makefile.in.in (check-macro-version): Remove this
+       rule, since there's no file named 'check-macro-version' and its
+       use as a file breaks make -q.
+       (all): Don't depend on check-macro-version.
+       (CHECK_MACRO_VERSION): New macro.
+       (stamp-po): Use it.
+
        configmake: fix make -q problem
        * modules/configmake (configmake.h): Update configmake.h's time stamp
        even if the file does not change.  Otherwise, 'make -q' fails.
index 83d8838..caedd7f 100644 (file)
@@ -96,14 +96,14 @@ CATALOGS = @CATALOGS@
        mv t-$@ $@
 
 
-all: check-macro-version all-@USE_NLS@
+all: all-@USE_NLS@
 
 all-yes: stamp-po
 all-no:
 
 # Ensure that the gettext macros and this Makefile.in.in are in sync.
-check-macro-version:
-       @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
+CHECK_MACRO_VERSION = \
+       test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
          || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \
               exit 1; \
             }
@@ -123,6 +123,7 @@ check-macro-version:
 # $(POFILES) has been designed to not touch files that don't need to be
 # changed.
 stamp-po: $(srcdir)/$(DOMAIN).pot
+       @$(CHECK_MACRO_VERSION)
        test ! -f $(srcdir)/$(DOMAIN).pot || \
          test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
        @test ! -f $(srcdir)/$(DOMAIN).pot || { \