Re: Condtional target-specific variable assignment does not work as expected

2013-08-09 Thread Ed Hutchins
I've grossly simplified the above example to show the gist of it, but the intermediate steps are all first-order targets for debugging and development purposes. I started using macros but the amount of nesting and $-escaping needed makes that approach fragile and hard for non-expert users to manage

Re: Condtional target-specific variable assignment does not work as expected

2013-08-09 Thread Philip Guenther
On Fri, Aug 9, 2013 at 12:59 PM, Ed Hutchins wrote: ... > In my case I'd like to have "init", "start" and "start_clean" end-user > targets which reuse common > targets which in turn depend on targets specified by the above semantic > intent. If there were a > true order-only operator (say ||), I c

Condtional target-specific variable assignment does not work as expected

2013-08-09 Thread Ed Hutchins
The following Makefile: condset: COND ?= one condset: condset2 @echo $@ COND [$(COND)] condset2: COND ?= two condset2: condset3 @echo $@ COND [$(COND)] condset3: COND ?= three condset3: @echo $@ COND [$(COND)] outputs: condset3 COND [three] condset2 COND [two] condset COND [one] I would have