diff --git a/v2/doc/src/advanced.xml b/v2/doc/src/advanced.xml index 34a95dd7c..3b535403b 100644 --- a/v2/doc/src/advanced.xml +++ b/v2/doc/src/advanced.xml @@ -653,18 +653,19 @@ obj test.debug : test.cpp : <variant>debug ; files. Sometimes, you'll want to automatically construct the list of source files rather than having to spell it out manually, in which case you can use the - glob rule. Here are two examples: + glob rule. Here are two examples: exe a : a.cpp ; # a.cpp is the only source file exe b : [ glob *.cpp ] ; # all .cpp files in this directory are sources + Unless you specify a file with an absolute path, the name is considered relative to the source directory — which is typically the directory where the Jamfile is located, but can be changed as described in . - + The list of sources can also refer to other main targets. @@ -675,6 +676,8 @@ exe b : [ glob *.cpp ] ; # all .cpp files in this directory are sources distinguish the directory name from the project name—the part before the double slash is first looked up as project name, and then as directory name. For example: + + lib helper : helper.cpp ; exe a : a.cpp helper ; @@ -682,6 +685,7 @@ exe a : a.cpp helper ; exe b : b.cpp ..//utils ; exe c : c.cpp /boost/program_options//program_options ; + The first exe uses the library defined in the same project. The second one uses some target (most likely library) defined by Jamfile one level higher. Finally, the third target @@ -1024,9 +1028,8 @@ project tennis subprojects, so that every definition made in a parent project is always available to its children. The loading order of any other projects is unspecified. Even if one project refers to - another via use-project, - or a target reference, no specific order should be assumed. + another via the use-project or a target reference, + no specific order should be assumed. diff --git a/v2/doc/src/extending.xml b/v2/doc/src/extending.xml index 58471d733..ff69e13a9 100644 --- a/v2/doc/src/extending.xml +++ b/v2/doc/src/extending.xml @@ -55,9 +55,6 @@ import type ; type.register VERBATIM : vrb ; - - The first parameter to type.register gives the name of the declared type. By convention, it's uppercase. The second parameter diff --git a/v2/doc/src/tasks.xml b/v2/doc/src/tasks.xml index 93ecbb41d..9cecf973c 100644 --- a/v2/doc/src/tasks.xml +++ b/v2/doc/src/tasks.xml @@ -12,7 +12,7 @@ This section describes main targets types that Boost.Build supports of-of-the-box. Unless otherwise noted, all mentioned main target rules have the common signature, described in . + linkend="bbv2.advanced.targets"/>.