Shorten lines in ninja file

This commit is contained in:
Anthony Scemama 2021-05-19 18:36:43 +02:00
parent 132a4a1661
commit 33ca5e1018
1 changed files with 7 additions and 2 deletions

View File

@ -55,7 +55,8 @@ def dress(f,in_root=False):
result = os.path.join(cwd,f)
else:
result = os.path.join(cwd,irpdir,f)
return os.path.normpath(result)
result = os.path.normpath(result)
return result
def create_build_touches(list_of_other_o):
@ -405,8 +406,12 @@ def run():
output.append(create_build_remaining(i))
text = '\n\n'.join(output)
text = text.replace(cwd+"/IRPF90_temp","$T")
text = text.replace(cwd,"$X")
with open(FILENAME,'w') as f:
f.write('\n\n'.join(output))
f.write("X="+cwd+"\nT="+cwd+"/IRPF90_temp\n")
f.write(text)
f.write('\n')
create_irpf90_make([ x.filename for x in l_targets ] + [ os.path.join(irpdir,'irpf90.a') ] )