Skip to content

Example from Chapter 11 docs is incorrect? #4362

Answered by mwichmann
amine-aboufirass asked this question in Q&A
Discussion options

You must be logged in to vote

This is all about target selection rules. If install evaluates to something in the project tree (i.e. at or below the directory of the SConstruct, which it is in your case), AND you haven't given any targets on the cmdline or called the Default 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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@amine-aboufirass
Comment options

@amine-aboufirass
Comment options

@mwichmann
Comment options

Answer selected by amine-aboufirass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants