finding where a make variable is set

2009-05-29 Thread Robert Huff

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?


Robert Huff


___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: finding where a make variable is set

2009-05-29 Thread Mel Flynn
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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: finding where a make variable is set

2009-05-29 Thread Chuck Robey
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?

Would it be likely that, if you grepped in the /usr/ports/Mk directory, that the
entry in bsd.commands.mk might have the entry you're interested in?  Least,
that's a BSD Make template file which does this, but if that part of your build
is done via GNU Make, or CMake, something like that, I might be wrong here.
You'd have to tell me what make tool you're talking about.

 
 
   Robert Huff
 
 
 ___
 freebsd-ports@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org