summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJustin Stanley <molecuul@users.noreply.github.com>2018-11-08 03:28:10 -0600
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-11-08 10:28:10 +0100
commitd1b17e820728f0e282f7bac880986da9c24daebe (patch)
tree2c99b998f705f23120b437fe565a0db1011235eb /var
parent8f4d6caf323dd2bb10847260ef30fe4a29e8a859 (diff)
downloadspack-d1b17e820728f0e282f7bac880986da9c24daebe.tar.gz
spack-d1b17e820728f0e282f7bac880986da9c24daebe.tar.bz2
spack-d1b17e820728f0e282f7bac880986da9c24daebe.tar.xz
spack-d1b17e820728f0e282f7bac880986da9c24daebe.zip
canu: use built-in makefile install (#9726)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/canu/package.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/var/spack/repos/builtin/packages/canu/package.py b/var/spack/repos/builtin/packages/canu/package.py
index 2b99fe63fc..1aec3384df 100644
--- a/var/spack/repos/builtin/packages/canu/package.py
+++ b/var/spack/repos/builtin/packages/canu/package.py
@@ -21,6 +21,7 @@ class Canu(MakefilePackage):
depends_on('perl', type='run')
build_directory = 'src'
+ build_targets = ['clean']
def patch(self):
# Use our perl, not whatever is in the environment
@@ -29,14 +30,5 @@ class Canu(MakefilePackage):
'src/pipelines/canu.pl')
def install(self, spec, prefix):
- # replicate the Makefile logic here:
- # https://github.com/marbl/canu/blob/master/src/Makefile#L344
- uname = which('uname')
- ostype = uname(output=str).strip()
- machinetype = uname('-m', output=str).strip()
- if machinetype == 'x86_64':
- machinetype = 'amd64'
- target_dir = '{0}-{1}'.format(ostype, machinetype)
- bin = join_path(target_dir, 'bin')
-
- install_tree(bin, prefix.bin)
+ with working_dir(self.build_directory):
+ make('all', 'TARGET_DIR={0}'.format(prefix))