[jamming] Can I rename a Jamfile to something else?

John Waugh john.waugh at gmail.com
Fri Apr 28 08:45:51 PDT 2006


There are two ways that spring to mind.
The easiest is to just set your custom name on the commandline, like so:

jam -sJAMFILE=myJamfile


You could, for instance, have a shell script / batch file that you call to
do your build, which in turn makes a call like:

jam -sJAMFILE=play_ball_Jamfile

Or similar, depending on the directory it's called from or some other
condition.

The other way involves modifying Jambase itself. The very last step in
Jambase is to include the user's jam file
Here are the last lines of Jambase:

#
# Now include the user's Jamfile.
#

include $(JAMFILE) ;


You could add whatever special logic you want just before that last line,
setting JAMFILE to be play_ball_Jamfile or similar depending on your
conditions.

Hope it helps
-John


On 4/28/06, Debra Mathis (Contractor) <dam at ssdd.nrl.navy.mil> wrote:
>
> Hello All,
>
> I am in the process of building the first ever baseline for our many
> different systems, platforms, etc. I would like to have my Jamfile
> uniquely named within each src directory where they will exist. If I have a
> src directory called "play_ball", and all of my source files begin with
> "play_ball_", then I would also like for my jamfile to follow this
> convention, and to be named play_ball.jam. How can I have the jam executable
> recognize this unique jamfile name? Will I have to change some rules in the
> Jambase?
>
> Thanks,
> Debbie
>
> dam at ssdd.nrl.navy.mil
>
>
>
> _______________________________________________
> jamming mailing list  -  jamming at perforce.com
> http://maillist.perforce.com/mailman/listinfo/jamming
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://maillist.perforce.com/pipermail/jamming/attachments/20060428/8fd0fae4/attachment.html


More information about the jamming mailing list