removing completely the write_make_inc function

This commit is contained in:
Nicolas Richart 2015-12-20 13:38:22 +01:00
parent 614c4d1876
commit 27d52badb1

View File

@ -72,8 +72,7 @@ def extra_features(self, makefile_inc, defines):
makefile_inc.append('LDFLAGS = %s' % ' '.join(ldflags))
def write_make_inc(self):
def patch(self):
makefile_inc = []
defines = [
'-DCOMMON_RANDOM_FIXED_SEED',
@ -101,12 +100,9 @@ def write_make_inc(self):
''
])
with open('Makefile.inc', 'w') as fh:
fh.write('\n'.join(makefile_inc))
def patch(self):
with working_dir('src'):
self.write_make_inc()
with open('Makefile.inc', 'w') as fh:
fh.write('\n'.join(makefile_inc))
def install(self, spec, prefix):
targets = ['scotch']