Okay, getting a bit late, I've answered my previous question...
However, I'm sure there's a more elegant solution. I added the following to
my Jamrules:
actions IdCompile
{
perl $(TOP)/tools/create_enum_file $(>) > $(<)
}
rule IdFile
{
Depends $(<) : $(>) ;
IdCompile $(<) : $(>) ;
}
which handles one type of textfiles I have. I then added this to the
Jamfile in one of my project's subdirectories:
IdFile TypeID.h : $(SUBDIR)/Setupfiles/TypeID.txt ;
IdFile RDBID.h : $(SUBDIR)/Setupfiles/RDBID.txt ;
Writing $(SUBDIR)/Setupfiles/ looks kind of ugly, but I haven't found a more
elegant-looking way (especially adding the directory to SEARCH_SOURCE didn't
work).
Enno.