5 messages in com.perforce.jammingActions that build multiple targets
FromSent OnAttachments
chri...@natinst.com chris.bartz@natinst.com22 Jan 1998 08:35 
M. S...@research.bell-labs.com22 Jan 1998 08:52 
Laur...@perforce.com22 Jan 1998 10:46 
chri...@natinst.com chris.bartz@natinst.com22 Jan 1998 12:08 
Laur...@perforce.com22 Jan 1998 13:44 
Subject:Actions that build multiple targets
From:M. S...@research.bell-labs.com (M. S@research.bell-labs.com)
Date:01/22/1998 08:52:07 AM
List:com.perforce.jamming

chri@natinst.com writes:

I am having trouble figuring out how to deal with actions that produce multiple targets. For example, if I want to make a "Browser

Database" with

I've been playing with this idea: create a NOTFILE target that represents the "bundle" of all the generated files, then make each generated file depend on the bundle target. The rule generating the bundle would be something like CcSBR, whose actions use the right cmd-line arguments; the actions for the .obj and .sbr files would be no-ops.

I haven't done very complicated things with this; in particular, I don't know how to write the rules so the .sbr file is not generated if the build targets don't require it. If you could have a variable controlling the generation, you could do if $GENERATE_SBR { RuleWithSBRs } else { RuleWithoutSBRs } but that's not the best interface.

Has anyone hacked Jam to export the list of build targets as a variable?

- - Sriram