jam
Jam - Using a single target in multiple directories
Submitted by moonz on Thu, 2010-07-22 06:55Sometimes, desire to use an object file in multiple directories arises. Assume the following directory structure.
- src/common/tests
- src/unittest
A test in common/tests need only one object in unittest to be linked, but one does not want to make it as a library for that.
Jam - Cross referencing between directories
Submitted by moonz on Thu, 2010-07-22 05:59Assume the following directory structure.
- src
- src/common
- src/common/tests
Of course, common/tests includes common for testing.
Problem is when one wants to include common/tests from common, say,
to make tests runnable from common directory.
Simply SubIncludeing each other result in infinite recursion, and does not work .
Using Jam
Submitted by moonz on Thu, 2010-07-22 03:59Originally, I was willing to write “Introduction to Jam”. But Jam documentation seems to do the job quite well already, so I’ve changed my plan to write some important things as I remember. This document does not cover most syntax and rules and is not for first learners. It contains an overview of very basic concepts and quite detailed problems
Hello, world!
Make Jamfile. In simple case, the following one line is enough.
Run jam.