diff --git a/v2/build/project.jam b/v2/build/project.jam index e046ddd71..d8efd252e 100644 --- a/v2/build/project.jam +++ b/v2/build/project.jam @@ -109,7 +109,7 @@ rule load-parent ( location ) if ! $(found) { ECHO "error: Could not find parent for project at '$(location)'" ; - ECHO "error: Did not find Jamfile or project-root.jam in any parent directory." ; + ECHO "error: Did not find Jamfile.jam or Jamroot.jam in any parent directory." ; EXIT ; } diff --git a/v2/doc/src/extending.xml b/v2/doc/src/extending.xml index f85abb7b6..ead6a2884 100644 --- a/v2/doc/src/extending.xml +++ b/v2/doc/src/extending.xml @@ -94,21 +94,24 @@ actions inline-file --> - Now, we're ready to tie it all together. Put all the code above in file + + Now, we're ready to tie it all together. Put all the code above in file verbatim.jam, add import verbatim ; to - project-root.jam, and it's possible to write the - following in Jamfile: + Jamroot.jam, and it's possible to write the following + in your Jamfile: exe codegen : codegen.cpp class_template.verbatim usage.verbatim ; - The listed verbatim files will be automatically converted into C++, - compiled and then linked to the codegen executable. + + The listed verbatim files will be automatically converted into C++ source + files, compiled and then linked to the codegen executable. - In subsequent sections, we will extend this example, and review all the + + In subsequent sections, we will extend this example, and review all the mechanisms in detail. The complete code is available in the example/customization directory. @@ -721,22 +724,23 @@ generators.register-standard obfuscate.file : CPP : OBFUSCATED_CPP ; in Jamfiles, which will convert source to the OBFUSCATED_CPP type. - The second way is to write a wrapper rule that calls - any of the existing rules. For example, suppose you have only one library per - directory and want all cpp files in the directory to be compiled into that library. You - can achieve this effect with: + + The second way is to write a wrapper rule that calls any of the existing + rules. For example, suppose you have only one library per directory and + want all cpp files in the directory to be compiled into that library. You + can achieve this effect using: lib codegen : [ glob *.cpp ] ; - but if you want to make it even simpler, you could add the following - definition to the project-root.jam file: + If you want to make it even simpler, you could add the following + definition to the Jamroot.jam file: rule glib ( name : extra-sources * : requirements * ) { lib $(name) : [ glob *.cpp ] $(extra-sources) : $(requirements) ; } -which would allow you to reduce the Jamfile to + allowing you to reduce the Jamfile to just glib codegen ; @@ -755,11 +759,11 @@ glib codegen ; Toolset modules - If your extensions will be used only on one project, they can be - placed in a separate .jam file that will be - imported by your project-root.jam. If the - extensions will be used on many projects, users will thank you for - a finishing touch. + + If your extensions will be used only on one project, they can be placed in + a separate .jam file and imported by your + Jamroot.jam. If the extensions will be used on many + projects, users will thank you for a finishing touch. The using rule provides a standard mechanism diff --git a/v2/doc/src/faq.xml b/v2/doc/src/faq.xml index f0c75113c..df888e625 100644 --- a/v2/doc/src/faq.xml +++ b/v2/doc/src/faq.xml @@ -216,12 +216,12 @@ local gtk_includes = [ SHELL "gtk-config --cflags" ] ;
- How to get the project-root location? + <title>How to get the project root (a.k.a. Jamroot.jam) location? - You might want to use the location of the project-root in your - Jamfiles. To do it, you'd need to declare path constant in your - project-root.jam: + + You might want to use your project's root location in your Jamfiles. To + access it just declare a path constant in your Jamroot.jam file using: path-constant TOP : . ; diff --git a/v2/test/project_test3.py b/v2/test/project_test3.py index cd1afadc7..7d46f3f19 100644 --- a/v2/test/project_test3.py +++ b/v2/test/project_test3.py @@ -16,7 +16,7 @@ t.set_tree("project-test3") os.remove("project-root.jam") t.run_build_system(status=1, stdout= """error: Could not find parent for project at '.' -error: Did not find Jamfile or project-root.jam in any parent directory. +error: Did not find Jamfile.jam or Jamroot.jam in any parent directory. """)