From 42bc94fdc537b08c568136f7422a299b2cb93f2a Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 7 Sep 2007 21:34:27 +0000 Subject: [PATCH] Adjust faq entry about targets in site-config.jam [SVN r39160] --- v2/doc/src/faq.xml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/v2/doc/src/faq.xml b/v2/doc/src/faq.xml index 591f0eff5..f0c75113c 100644 --- a/v2/doc/src/faq.xml +++ b/v2/doc/src/faq.xml @@ -331,18 +331,16 @@ stage installed : application : <dll-path>/usr/lib/snake It is desirable to declare standard libraries available on a given system. Putting target declaration in Jamfile is not really good, since locations of the libraries can vary. The solution is - to put the following to site-config.jam. + to declare the targets in site-config.jam: -import project ; -project.initialize $(__name__) ; project site-config ; lib zlib : : <name>z ; - The second line allows this module to act as project. The - third line gives id to this project — it really has no location - and cannot be used otherwise. The fourth line just declares a - target. Now, one can write: + Recall that both site-config.jam and + user-config.jam are projects, and everything + you can do in a Jamfile you can do in those files. So, you declare + a project id and a target. Now, one can write: exe hello : hello.cpp /site-config//zlib ;