project('outdir path', 'c')

configure_file(input : 'foo.in',
  output : 'subdir/foo',
  configuration : configuration_data())