1 message in com.perforce.jamming[jamming] Re: different rules for tex...
FromSent OnAttachments
Enno Rehling01 Apr 2003 08:34 
Subject:[jamming] Re: different rules for textfiles
From:Enno Rehling (enn@funcom.com)
Date:04/01/2003 08:34:42 AM
List:com.perforce.jamming

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.