Recognize make syntax (make variable) in one more place.

This commit is contained in:
asau 2012-08-03 09:07:21 +00:00
parent 4e7db1213b
commit 6317d33d1b
2 changed files with 4 additions and 4 deletions

View file

@ -1,10 +1,10 @@
# $NetBSD: Makefile,v 1.413 2012/08/01 22:19:00 asau Exp $
# $NetBSD: Makefile,v 1.414 2012/08/03 09:07:21 asau Exp $
#
# Note: if you update the version number, please have a look at the
# changes between the CVS tag "pkglint_current" and HEAD.
# After updating, please re-set the CVS tag to HEAD.
DISTNAME= pkglint-4.121
DISTNAME= pkglint-4.122
CATEGORIES= pkgtools
MASTER_SITES= # none
DISTFILES= # none

View file

@ -1,5 +1,5 @@
#! @PERL@
# $NetBSD: pkglint.pl,v 1.844 2012/08/01 22:19:01 asau Exp $
# $NetBSD: pkglint.pl,v 1.845 2012/08/03 09:07:21 asau Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@ -2753,7 +2753,7 @@ sub determine_used_variables($) {
foreach my $line (@{$lines}) {
$rest = $line->text;
while ($rest =~ s/(?:\$\{|defined\(|empty\()([0-9+.A-Z_a-z]+)[:})]//) {
while ($rest =~ s/(?:\$\{|\$\(|defined\(|empty\()([0-9+.A-Z_a-z]+)[:})]//) {
my ($varname) = ($1);
use_var($line, $varname);
$opt_debug_unused and $line->log_debug("Variable ${varname} is used.");