mirror of
https://gitlab.com/scemama/irpf90.git
synced 2025-01-02 17:45:41 +01:00
Shorten lines in ninja file
This commit is contained in:
parent
132a4a1661
commit
33ca5e1018
@ -55,7 +55,8 @@ def dress(f,in_root=False):
|
|||||||
result = os.path.join(cwd,f)
|
result = os.path.join(cwd,f)
|
||||||
else:
|
else:
|
||||||
result = os.path.join(cwd,irpdir,f)
|
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):
|
def create_build_touches(list_of_other_o):
|
||||||
@ -405,8 +406,12 @@ def run():
|
|||||||
output.append(create_build_remaining(i))
|
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:
|
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')
|
f.write('\n')
|
||||||
|
|
||||||
create_irpf90_make([ x.filename for x in l_targets ] + [ os.path.join(irpdir,'irpf90.a') ] )
|
create_irpf90_make([ x.filename for x in l_targets ] + [ os.path.join(irpdir,'irpf90.a') ] )
|
||||||
|
Loading…
Reference in New Issue
Block a user