title: Scons Hierarchical Builds with Repository directory
body: <p>I have an SCons project set up as follows:</p>
  <pre><code>proj/
      SConstruct
      src/
          c/
          h/
      app1/SConscript
      app2/SConscript
      ...
  </code></pre>
  <p>All source/header files for each application are located in src/c and src/h.</p>
  <hr />
  <ol>
  <li>At first step I created a <em>SConstruct</em> in app1 which use the Repository function.</li>
  </ol>
  <blockquote>
  <p><strong>...</strong></p>
  <p>src=Split(&quot;main.c first.c second.c&quot;)</p>
  <p>env = Environment(CC='g++', CCFLAGS=['-O0', '-ggdb'], CPPPATH=['.'])</p>
  <p>env.Program('appone', src)</p>
  <p>Repository(&quot;../src/c&quot;, &quot;../src/h&quot;)</p>
  </blockquote>
  <p>All works fine. scons found all necessary source/header files from repository to build the <em>appone</em> application.</p>
  <hr />
  <p>But if I try to build appone hierarchical it will not work :-(</p>
  <p>I renamed app1/SConstruct to app1/SConscript and put</p>
  <blockquote>
  <p>SConscript('app1/SConscript')</p>
  </blockquote>
  <p>into proj/SConstruct</p>
  <p>Now I get following error:</p>
  <pre><code>scons: *** [app1/main.o] Source `app1/main.c' not found, needed by target `app1/main.o'.
  </code></pre>
  <p>How do I configure my proj/SConstruct or proj/app1/SConscript to search for all source files in my Repository directory?</p>