mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-09-16 17:35:48 +02:00
35 lines
491 B
Python
35 lines
491 B
Python
|
#!/usr/bin/python
|
||
|
|
||
|
import irpf90_t
|
||
|
irpdir = irpf90_t.irpdir
|
||
|
mandir = irpf90_t.mandir
|
||
|
|
||
|
FILENAME = "Makefile"
|
||
|
|
||
|
|
||
|
def create():
|
||
|
has_makefile = True
|
||
|
try:
|
||
|
file = open(FILENAME,"r")
|
||
|
except OSError:
|
||
|
has_makefile = False
|
||
|
if has_makefile:
|
||
|
return
|
||
|
file = open(FILENAME,"w")
|
||
|
t = """IRPF90 = irpf90 #-a -d
|
||
|
FC = gfortran
|
||
|
FCFLAGS= -ffree-line-length-none -O2
|
||
|
|
||
|
SRC=
|
||
|
OBJ=
|
||
|
LIB=
|
||
|
|
||
|
include irpf90.make
|
||
|
|
||
|
irpf90.make: $(wildcard *.irp.f)
|
||
|
\t$(IRPF90)
|
||
|
"""
|
||
|
file.write(t)
|
||
|
file.close()
|
||
|
|