On Thu, Aug 3, 2017 at 12:53 PM, Martin Dorey <martin.do...@hds.com> wrote:
> "It’s very important that you recognize the limited scope in which automatic 
> variable values are available: they only have values within the recipe. In 
> particular, you cannot use them anywhere within the target list of a rule; 
> they have no value there and will expand to the empty string."

As an aside, one thing I figured out a few weeks ago is that the
following *does* work as you'd hope:

%: export TARGET=$@
%: export PREREQS=$^

Combined with a replacement SHELL, this can be used to take some very
interesting implicit actions.

Kyle

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to