'Install under the prefix'

def install(self, spec, prefix):

    mkdirp(prefix.bin)
    mkdirp(prefix.include)
    mkdirp(prefix.lib)
    with working_dir('deploy'):
        for f in os.listdir('.'):
            if re.match('.*\\.(a|so|dylib)$', f):
                install(f, prefix.lib)
            elif re.match('.*\\.h$', f):
                install(f, prefix.include)
            else:
                install(f, prefix.bin)
