title: How to install a directory recursively with waf
body: <p>I currently use following valadoc build task to generate a api documentation for my vala application:</p>
  
  <pre class="lang-py prettyprint-override"><code>doc = bld.new_task_gen (
    features = 'valadoc',
    output_dir = '../doc/html',
    package_name = bld.env['PACKAGE_NAME'],
    package_version = bld.env['VERSION'],
    packages = 'gtk+-3.0 gee-1.0 libxml-2.0 x11 gdk-x11-3.0 libpeas-gtk-1.0 libpeas-1.0 config xtst gdk-3.0',
    vapi_dirs = '../vapi',
    force = True)
  
  path = bld.path.find_dir ('../src')
  doc.files = path.ant_glob (incl='**/*.vala')
  </code></pre>
  
  <p>This tasks creates a directory html in the output directory including several subdirectories with html and picture files.</p>
  
  <p>What I am know trying to do is to install such files to /usr/share/doc/projectname/html/. To do so I added the following to the wscript_build file (following the documentation I have found <a href="http://code.google.com/p/waf/wiki/InstallFiles" rel="nofollow noreferrer">here</a>):</p>
  
  <pre class="lang-py prettyprint-override"><code>output_dir = doc.bld.path.find_or_declare('../doc/html')
  doc.outputs = output_dir.ant_glob (incl='**/*')
  doc.bld.install_files('${PREFIX}/share/doc/projectname/html', doc.outputs)
  </code></pre>
  
  <p>However this leads to an error "Missing node signature". Does anyone know how to get around this error? Or is there a simple way to install a directory recursively with waf?</p>
  
  <p>You can find a full-fledge sample <a href="http://bazaar.launchpad.net/~diodon-team/diodon/trunk/view/head:/doc/wscript_build" rel="nofollow noreferrer">here</a>.</p>