Hi,
A bit OT but coming in the context of uClinux-dist, so I'll try here
first :)
Is it possible to modify the PATH used by make's $(shell function)?
The obvious construct
PATH=$(PATH):/path/to/add
export PATH
foo=$(shell mytool)
where mytool lives in /path/to/add, doesn't work
The only way I've got this to fly is like so:
PATH=$(PATH):/path/to/add
foo=$(shell PATH=$(PATH) mytool)
but it's a bit ugly.
Reading the ake manual it's clear that 'export' is intended to send
environment variables to sub-makes, but it's silent about how to
influence the environment of the $(shell) function. All my experiments
here suggest that $(shell) executes with the environment of the shell
that invoked make, and there's nothing you can do about that.
cheers,
John
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev