- 次がうまく動作しない.
$ ls SConstruct src/ $ ls src SConscript hello.c $ cat SConstruct SConscript('src/SConscript', build_dir = '../build') $ cat src/SConscript Program('hello', ['hello.c']) $ scons -Q scons: `.' is up to date.
$ scons -Q ../build
$ scons -Q --taskmastertrace=- Taskmaster: '.': children: ['SConstruct', 'src'] waiting on unstarted children: ['src'] Taskmaster: 'src': children: ['src/SConscript'] evaluating src Taskmaster: '.': children: ['SConstruct', 'src'] evaluating . scons: `.' is up to date. Taskmaster: '.': already handled (up_to_date)
command line arguments are "expanded" into a list of Nodes that we want built # if the argument is a directory, then everything within that directory is built
Default(Program('hello', ['hello.c'])
とするほうがよい.