nfft distclean before configure patch (#3241)

This commit is contained in:
Thierry 2017-02-28 11:05:01 -08:00 committed by Adam J. Stewart
parent d1040b7111
commit 315dfe0970

View file

@ -40,6 +40,7 @@ class Nfft(AutotoolsPackage):
def install(self, spec, prefix): def install(self, spec, prefix):
options = ['--prefix={0}'.format(prefix)] options = ['--prefix={0}'.format(prefix)]
make("distclean")
configure(*options) configure(*options)
make() make()
if self.run_tests: if self.run_tests:
@ -47,12 +48,14 @@ def install(self, spec, prefix):
make("install") make("install")
if '+float' in spec['fftw']: if '+float' in spec['fftw']:
make("distclean")
configure('--enable-float', *options) configure('--enable-float', *options)
make() make()
if self.run_tests: if self.run_tests:
make("check") make("check")
make("install") make("install")
if '+long_double' in spec['fftw']: if '+long_double' in spec['fftw']:
make("distclean")
configure('--enable-long-double', *options) configure('--enable-long-double', *options)
make() make()
if self.run_tests: if self.run_tests: