finding where a make variable is set

Mel Flynn mel.flynn+fbsd.ports at mailing.thruhere.net
Fri May 29 18:10:20 UTC 2009


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


More information about the freebsd-ports mailing list