Re: Secondary expansion and pattern rules

2019-02-11 Thread Mike Haboustak
On Fri, Feb 08, 2019 at 04:07:08PM -0500, Paul Smith wrote: > On Fri, 2019-02-08 at 14:32 -0500, Mike Haboustak wrote: > > It seems that the value of $< is getting defaulted for implicit rules > > during second expansion. However, the value of $< is correct in the > > recipe. > > > > If this is the

Re: Secondary expansion and pattern rules

2019-02-08 Thread Paul Smith
On Fri, 2019-02-08 at 14:32 -0500, Mike Haboustak wrote: > I've been trying to make use of secondary expansion and I ran into some > confusion that I couldn't reconcile with manual. Specifically, The value > of the automatic variable $< is not what I'd expect during the second > expansion of an imp

Secondary expansion and pattern rules

2019-02-08 Thread Mike Haboustak
I've been trying to make use of secondary expansion and I ran into some confusion that I couldn't reconcile with manual. Specifically, The value of the automatic variable $< is not what I'd expect during the second expansion of an implicit rule prerequisite. In the makefile below, foo.o is built v