'Install under the projectdir'

def install(self, spec, prefix):

    mkdirp(self.projectdir)
    projdir = os.path.basename(self.projectdir)
    edits = {'WM_PROJECT_INST_DIR': os.path.dirname(self.projectdir), 'WM_PROJECT_DIR': join_path('$WM_PROJECT_INST_DIR', projdir)}
    if ('+source' in spec):
        ignored = re.compile('^spack-.*')
    else:
        ignored = re.compile('^(Allwmake|spack-).*')
    files = [f for f in glob.glob('*') if (os.path.isfile(f) and (not ignored.search(f)))]
    for f in files:
        install(f, self.projectdir)
    dirs = ['etc', 'bin', 'wmake']
    if ('+source' in spec):
        dirs.extend(['applications', 'src', 'tutorials'])
    for d in dirs:
        install_tree(d, join_path(self.projectdir, d), symlinks=True)
    dirs = ['platforms']
    if ('+source' in spec):
        dirs.extend(['doc'])
    ignored = ['src', 'applications', 'html', 'Guides']
    for d in dirs:
        install_tree(d, join_path(self.projectdir, d), ignore=shutil.ignore_patterns(*ignored), symlinks=True)
    etc_dir = join_path(self.projectdir, 'etc')
    rewrite_environ_files(edits, posix=join_path(etc_dir, 'bashrc'), cshell=join_path(etc_dir, 'cshrc'))
    self.install_links()
