[Omake] omake bug with multiple targets

Aleksey Nogin nogin at metaprl.org
Thu Feb 5 12:19:58 PST 2009


Sam,

Which version of OMake is that?

I can not reproduce this problem using 0.9.8.5:

% cat OMakefile
generator:
    echo $'#!/bin/sh' > $@
    echo $'touch a b c' >> $@
    chmod 755 $@

a b c: generator
    ./generator

.DEFAULT: a b c
% rm -f a b c generator; omake --verbose -j3
*** omake: reading OMakefiles
*** omake: finished reading OMakefiles (0.01 sec)
- build . generator
+ Shell.echo('#!/bin/sh') > generator
- build . generator
+ Shell.echo('touch a b c') >> generator
- build . generator
+ Shell.chmod(755 generator)
- exit . generator, 0.00 sec, code 0
- build . c
+ ./generator
- exit . c, 0.01 sec, code 0
*** omake: done (0.09 sec, 0/0 scans, 2/4 rules, 4/41 digests)
% omake --version
OMake 0.9.8.5 (release 3):
        build [Tue Sep 4 14:42:18 2007]
        on dangle.hrl.com

Default library directory : /usr/lib/omake

Aleksey


On 05.02.2009 09:57, Sam Steingold wrote:

> Hi,
> Suppose generator.exe creates 3 files: a.ml, b.ml, c.ml.
> if my OMakefile says:
> ================================
> a.ml b.ml c.ml : generator.exe
>     ./generator.exe
> 
> a.exe : a.ml
>  ....
> 
> b.exe : b.ml
>  ....
> ================================
> then generator.exe is called 3 times(!) with disastrous consequences
> (the 3 simultaneous - with "omake -j 3" - invocations overwrite each
> other's files).
> 
> is this a known bug?
> is there a workaround?
> 
> Thanks.
> Sam.
> 
> _______________________________________________
> Omake mailing list
> Omake at metaprl.org
> https://lists.metaprl.org/mailman/listinfo/omake
> 



More information about the Omake mailing list