1 message in com.perforce.jamming[jamming] Problems with TEMPORARY| From | Sent On | Attachments |
|---|---|---|
| Matt...@corp.phone.com | 14 Mar 2000 16:04 |
| Subject: | [jamming] Problems with TEMPORARY![]() |
|---|---|
| From: | Matt...@corp.phone.com (Matt...@corp.phone.com) |
| Date: | 03/14/2000 04:04:21 PM |
| List: | com.perforce.jamming |
I've run into a situation where jam isn't generating a temporary file when it should. I have attached a jamfile that exhibits the problem.
I build a dependency tree like this:
child father grandfather mother
It works fine until I mark father as TEMPORARY. When I do that it seems to work fine until I touch mother file. When I do that, jam tries to build child without father being present.
====================================================================== make -- all time -- all: missing make -- child time -- child: Tue Mar 14 15:46:32 2000 make -- father time -- father: parents make -- grandfather time -- grandfather: Tue Mar 14 15:45:00 2000 made stable grandfather made stable father make -- mother time -- mother: Tue Mar 14 15:54:26 2000 made* newer mother made+ old child made+ update all ...found 5 target(s)... ...updating 1 target(s)... Cat child
cat father mother > child
cat: father: No such file or directory ...failed Cat child ... ...failed updating 1 target(s)... ======================================================================
Jam knows that 'child' depends on 'father' yet it isn't rebuilding it. Is there some way I can deal with this problem?
The Jamfile I'm using to test is here...
rule Cp { DEPENDS $(<) : $(>) ; }
actions Cp { cp $(>) $(<) }
rule Cat { DEPENDS $(<) : $(>) ; }
actions together Cat { cat $(>) > $(<) }
rule RmTemps { TEMPORARY $(>) ; }
actions quietly updated piecemeal together RmTemps { rm $(>) }
rule MakeChild { Cp father : grandfather ; Cat $(<) : mother father ; RmTemps $(<) : father ; }
MakeChild child ;
DEPENDS all : child ;




