All,
Upon reading the official help for .SECONDEXPANSION: here,
https://www.gnu.org/software/make/manual/html_node/Secondary-Expansion.html,
My simple makefile below isn't doing what I expect - it could be from my
weird `$(eval ...)` use...
I'm expecting to be able to append to $(OBJECTS) in the
On Thu, 2018-08-23 at 23:17 -0400, Anthony Clark wrote:
> all: foo $$(OBJECTS) ; $(info OBJECTS=$(OBJECTS))
>
> foo:
> @$(eval OBJECTS += obj/second)
> @echo "in foo, OBJECTS=$(OBJECTS)"
This won't work as you hope, because first make decides to rebuild the
"all" target (as it's the first