On Fri, Jul 17, 2015 at 08:06:04AM +0200, Jan Kiszka wrote:
> On 2015-07-17 00:34, Gilles Chanteperdrix wrote:
> >> To explain the variation from your approach that you will find in my
> >> queue now: Letting the script generate two files in one run is very
> >> unhandy when defining the Makefile rules. So I now went for a two-stage
> >> generation via awk that spits out two different macros the tables
> >> can use.
> > 
> > Looks like nonsense to me. 
> 
> That's not necessary.
> 
> > 
> > foo bar: foo.awk 
> > 
> > works with GNU make as far as I know
> > 
> 
> Sure, but foo.awk is called only with foo or bar as target, so you can't
> parametrize it and have to hard-code the outputs. Moreover, if running
> parallel builds, make can decide to start both target generations at the
> same time because it cannot see that running only one will already
> magically generate the other.

Ok, thought this syntax meant that the rule would generate the two targets at
once, and make knew that and would run the rule only once. It works
like that when running make without -j because make will not run the
rule twice because the second file was created by the first run and
so has the proper date, but -j breaks that indeed.

-- 
                                            Gilles.
https://click-hack.org

_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai

Reply via email to