[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shell function and $PATH
From: |
Paul Smith |
Subject: |
Re: shell function and $PATH |
Date: |
Thu, 17 Dec 2015 07:52:05 -0500 |
On Thu, 2015-12-17 at 09:17 +0000, 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 used to run the rules.
> I am using make 4.0, from Fedora 23. Is this a bug, or expected? If
> it's expected... any suggestion about how to solve my pkg-config
> problem?
I believe there's already a bug in Savannah about this.
However the workaround is straightforward:
$(info $(shell PATH=$(PATH); echo $$PATH))