Subject: [PATCH 14/14] checkbashisms: fix some false positives when checking makefiles

From: Raphael Geissert <[email-masked]>
Date: Fri, 14 May 2010 23:42:06 -0500

Signed-off-by: Raphael Geissert <[email-masked]>
---
 scripts/checkbashisms.pl |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index ecb17f2..81c1d98 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -204,6 +204,8 @@ foreach my $filename (@ARGV) {
 
 	    last if m%^\s*(override|export)?\s*SHELL\s*:?=\s*(/bin/)?bash\s*%;
 
+	    # Remove "simple" target names
+	    s/^[\w%.-]+(?:\s+[\w%.-]+)*::?//;
 	    s/^\t//;
 	    s/(?<!\$)\$\((\w+)\)/\${$1}/g;
 	    s/(\$){2}/$1/g;
-- 
1.7.1