Example from Chapter 11 docs is incorrect? #4362
-
I'm trying to implement one of the examples in Chapter 11 of the manual as follows:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This is all about target selection rules. If |
Beta Was this translation helpful? Give feedback.
This is all about target selection rules. If
install
evaluates to something in the project tree (i.e. at or below the directory of theSConstruct
, which it is in your case), AND you haven't given any targets on the cmdline or called theDefault
function, then that target will be one selected for building. In the User Guide example, the directory to install to is/usr/bin/
, which does not meet that selection rule, so it's not selected by default, only when you give the (alias) target on the cmdline.