Re: shell function and $PATH

2015-12-17 Thread Cristian Morales Vega
On 17 December 2015 at 12:52, Paul Smith wrote: > On Thu, 2015-12-17 at 09:17 +, Cristian Morales Vega wrote: >> When using this Makefile >> >> >> export PATH:=la:$(PATH) >> >> $(info $(shell echo $$PATH)) >> >> all: >> @echo $$PATH >> > >> The PATH is not being e

Re: shell function and $PATH

2015-12-17 Thread Tim Murphy
Why not say $(shell PATH:=$(PATH) ; pkgconfig ..,) ? Regards, Tim On 17 Dec 2015 4:46 a.m., "Cristian Morales Vega" wrote: > When using this Makefile > > > export PATH:=la:$(PATH) > > $(info $(shell echo $$PATH)) > > all: > @echo $$PATH > > > The output is > $ ma

Re: shell function and $PATH

2015-12-17 Thread Paul Smith
On Thu, 2015-12-17 at 09:17 +, Cristian Morales Vega wrote: > When using this Makefile > > > export PATH:=la:$(PATH) > > $(info $(shell echo $$PATH)) > > all: > @echo $$PATH > > The PATH is not being exported to the shell from $(shell), but it is > to the shell