8 messages in com.perforce.jamming[jamming] Calling a custom compiler| From | Sent On | Attachments |
|---|---|---|
| Darren Cook | 20 Jan 2004 23:46 | |
| Alan Baljeu" <alanb@cornerstonemold.com (Alan Baljeu) | 21 Jan 2004 05:16 | |
| Darren Cook | 21 Jan 2004 22:33 | |
| Paul...@scee.net | 22 Jan 2004 06:47 | |
| Alen Ladavac | 22 Jan 2004 07:36 | |
| Alen Ladavac | 22 Jan 2004 10:24 | |
| Darren Cook | 22 Jan 2004 15:10 | |
| shatty | 22 Jan 2004 16:55 |
| Subject: | [jamming] Calling a custom compiler![]() |
|---|---|
| From: | Darren Cook (dar...@dcook.org) |
| Date: | 01/20/2004 11:46:14 PM |
| List: | com.perforce.jamming |
Hi,
From a jamfile I'd like to run one of my own utility programs to generate a data file from all files with a certain extension in a certain directory.
I've tried each of the below [1][2][3] and all fail (usually by saying it doesn't know how to make "tactest_positions.19.dat").
(../tests is the directory the Jamfile is in).
The data file produced is then one of the dependencies for certain unit tests. The below excerpts are from rule Test { ... }
local ftest = tactest_positions.19.dat ;
#Depends $(ftest) : ../unit_tests/sgf/19.tac/*.sgf ;
switch $(fout) { case *tacsearch* : Depends $(fout) : $(fexe) $(ftest) ; case * : Depends $(fout) : $(fexe) ; }
The uncommented lines work (as long as $(ftest) exists), but if I uncomment the Depends line I get: "don't know how to make ../unit_tests/sgf/19.tac/*.sgf"
(BTW, in the real Jamfile the "19" is actually ${2} - if that makes a difference let me know).
I suspect my two problems are related and I'm missing some fundamental understanding. Could someone kindly point me to the correct tree to bark up? Thanks,
Darren
[1]: rule tactest_positions.19.dat CompileTacFile19 ;
actions CompileTacFile19 { ../progs/tactests_compile/19.tactests_compile.exe ../tests/tactest_positions.19.dat ../unit_tests/sgf/19.tac/*.sgf }
[2] (also tried without quotes) GenFile tactest_positions.19.dat : "../progs/tactests_compile/19.tactests_compile.exe ../tests/tactest_positions.19.dat ../unit_tests/sgf/19.tac/*.sgf" ;
[3] (also tried without quotes) Depends tactest_positions.19.dat : "../progs/tactests_compile/19.tactests_compile.exe ../tests/tactest_positions.19.dat ../unit_tests/sgf/19.tac/*.sgf" ;




