'Make a fake install directory containing fake executables,
headers, and libraries.'

def do_fake_install(self):

    name = self.name
    library_name = ('lib' + self.name)
    dso_suffix = ('.dylib' if (sys.platform == 'darwin') else '.so')
    chmod = which('chmod')
    mkdirp(self.prefix.bin)
    touch(join_path(self.prefix.bin, name))
    chmod('+x', join_path(self.prefix.bin, name))
    mkdirp(self.prefix.include)
    touch(join_path(self.prefix.include, (name + '.h')))
    mkdirp(self.prefix.lib)
    touch(join_path(self.prefix.lib, (library_name + dso_suffix)))
    touch(join_path(self.prefix.lib, (library_name + '.a')))
    mkdirp(self.prefix.man.man1)
    packages_dir = spack.store.layout.build_packages_path(self.spec)
    dump_packages(self.spec, packages_dir)
