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 ed01bbb..b2cba62 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