diff --git a/v2/doc/src/extending.xml b/v2/doc/src/extending.xml
index ff69e13a9..14460189b 100644
--- a/v2/doc/src/extending.xml
+++ b/v2/doc/src/extending.xml
@@ -37,30 +37,28 @@
- It's quite easy to achieve. You write special verbatim files
- that are just C++, except that the very first line of the file
- contains the name of a variable that should be generated. A simple tool
- is created that takes a verbatim file and creates a cpp file with
- a single char* variable whose name is taken from the first line
- of the verbatim file and whose value is the file's properly quoted content.
+ It's quite easy to achieve. You write special verbatim files that are
+ just C++, except that the very first line of the file contains the name of a
+ variable that should be generated. A simple tool is created that takes a
+ verbatim file and creates a cpp file with a single char* variable
+ whose name is taken from the first line of the verbatim file and whose value
+ is the file's properly quoted content.Let's see what Boost.Build can do.
- First off, Boost.Build has no idea about "verbatim files". So,
- you must register a new target type. The following code does
- it:
+ First off, Boost.Build has no idea about "verbatim files". So, you must
+ register a new target type. The following code does it:
import type ;
-type.register VERBATIM : vrb ;
+type.register VERBATIM : verbatim ;
- The first parameter to
- type.register gives the name of the
- declared type. By convention, it's uppercase. The second parameter
- is the suffix for files of this type. So, if Boost.Build sees
- code.vrb in a list of sources, it knows that it's of type
- VERBATIM.
+ The first parameter to type.register gives
+ the name of the declared type. By convention, it's uppercase. The second
+ parameter is the suffix for files of this type. So, if Boost.Build sees
+ code.verbatim in a list of sources, it knows that it's of
+ type VERBATIM.Next, you tell Boost.Build that the verbatim files can be
transformed into C++ files in one build step. A
@@ -96,26 +94,26 @@ actions inline-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:
+ 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:
+
exe codegen : codegen.cpp class_template.verbatim usage.verbatim ;
-
-The verbatim files will be automatically converted into C++
-and linked it.
+ The listed verbatim files will be automatically converted into C++,
+ compiled and then linked to the codegen executable.
- In the subsequent sections, we will extend this example, and review
- all the mechanisms in detail. The complete code is available in example/customization
- directory.
-
-
+ 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.
+
+
Target typesThe first thing we did in the