Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2009 19:51:57 +0200
From:      Mel Flynn <mel.flynn+fbsd.ports@mailing.thruhere.net>
To:        freebsd-ports@freebsd.org
Cc:        Robert Huff <roberthuff@rcn.com>
Subject:   Re: finding where a make variable is set
Message-ID:  <200905291951.57288.mel.flynn%2Bfbsd.ports@mailing.thruhere.net>
In-Reply-To: <18976.1953.302759.600570@jerusalem.litteratus.org>
References:  <18976.1953.302759.600570@jerusalem.litteratus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 29 May 2009 18:04:49 Robert Huff wrote:
> 	Given:
>
> huff@>> pd /usr/ports/editors/openoffice.org-3
> /usr/ports/editors/openoffice.org-3 /var/db/pkg
> huff@>> make -V CP
> /bin/cp
>
> 	how do I track down where CP gets set?  It isn't in the
> Makefile itself; is it in /usr/share/mk/*.mk?

% for f in `make -C /usr/ports/sysutils/pstree -V .MAKEFILE_LIST | sed -e 
's/\.\.//g'`; do pcregrep -sl '^CP\s*[:\?\+]?=' $f; done

/usr/ports/Mk/bsd.commands.mk

-- 
Mel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905291951.57288.mel.flynn%2Bfbsd.ports>