According to your rule:
you ask Jam to generate b before a,
and that's why the rules having b as targets are executed first.
Amaury.
Miklos Fazekas <bo...@mac.com>@perforce.com le 10/01/2001 17:56:57
Veuillez répondre à Miklos Fazekas <bo...@mac.com>
Envoyé par : jamm...@perforce.com
Pour : jamm...@perforce.com
cc :
Objet : [jamming] Multiple Depnedants and order of actions.
I have the following jam-file, and the files:
a,b,c,d,e
actions copy
{
echo "copy $(<) " > $(<)
}
rule copy
{
DEPENDS $(<) : $(>)
}
actions copy2
{
echo "copy $(>) " > $(<[1])
echo "copy $(>) " > $(<[2])
}
rule copy2
{
DEPENDS $(<) : $(>) ;
}
copy a : c ;
copy2 a b : d ;
copy b : e ;
DEPENDS all : b a ;
NOTFILE all ;
If i edit the file 'c' and 'e'. The orders of actions will be:
copy2 a b :d ;
copy b : e ;
copy a : c ;
That is not the same order as i defined!
I'd except an:
copy a : c ;
copy2 a b : d ;
copy b : e ;
order.
Is it a bug in Jam or is there any missing dependency in my example?
(Adding DEPENDS b : c won't help.)
Miklos