]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
maintcheck: avoid false positive in sc_tests_plain_make
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 4 Jan 2012 09:09:25 +0000 (10:09 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 4 Jan 2012 09:09:25 +0000 (10:09 +0100)
* Makefile.am (sc_tests_plain_make): Ensure to only match full
`make' words.  Avoid false positive in `silent-nested-vars.test'.

Makefile.am

index ed01bbb003df081924a18eaae67757178d0c5a13..b2cba6229d8de5dcb1e7913d8a5deea34b46cee8 100644 (file)
@@ -401,7 +401,7 @@ sc_tests_make_without_am_makeflags:
 
 ## Tests should never call make directly.
 sc_tests_plain_make:
-       @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[      ]*make'; then \
+       @if grep -v '^#' $(srcdir)/tests/*.test | $(EGREP) ':[  ]*make( |$$)'; then \
          echo 'Do not run "make" in the above tests.  Use "$$MAKE" instead.' 1>&2; \
          exit 1; \
        fi