10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-06-24 14:12:08 +02:00
irpf90/src/makefile.py

35 lines
491 B
Python
Raw Normal View History

2009-09-02 20:45:53 +02:00
#!/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")
2009-09-03 23:12:32 +02:00
except IOError:
2009-09-02 20:45:53 +02:00
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()