Commit d2b0c287 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

add local makefile overrides to be compatible with standard suffixes

parent b3244f9c
Loading
Loading
Loading
Loading
+16 −2
Original line number Diff line number Diff line
@@ -116,10 +116,24 @@ if buildflag:

if buildflag:
  print("Building MS-CG ...")
  if os.path.exists("%s/src/Make/Makefile.%s" % (homedir,msuffix)):
    cmd = 'cd "%s/src"; cp Make/Makefile.%s .; make -f Makefile.%s' % \
        (homedir,msuffix,msuffix)
  elif os.path.exists("Makefile.%s" % msuffix):
    cmd = 'cd "%s/src"; cp ../../Makefile.%s .; make -f Makefile.%s' % \
        (homedir,msuffix,msuffix)
  else:
    error("Cannot find Makefile.%s" % msuffix)
  txt = subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
  print(txt.decode('UTF-8'))
  if not os.path.exists("Makefile.lammps"):
    print("Creating Makefile.lammps")
    if os.path.exists("Makefile.lammps.%s" % msuffix):
      cmd = 'cp Makefile.lammps.%s Makefile.lammps' % msuffix
    else:
      cmd = 'cp Makefile.lammps.default Makefile.lammps'
    subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
  else: print("Makefile.lammps exists. Please check its settings")

# create 2 links in lib/mscg to MS-CG src dir

+5 −0
Original line number Diff line number Diff line
# Settings that the LAMMPS build will import when this package library is used

mscg_SYSINC = 
mscg_SYSLIB =  -lgsl -lgslcblas
mscg_SYSPATH = 
+5 −0
Original line number Diff line number Diff line
# Settings that the LAMMPS build will import when this package library is used

mscg_SYSINC = 
mscg_SYSLIB =  -lgsl -lgslcblas
mscg_SYSPATH = 
+5 −0
Original line number Diff line number Diff line
# Settings that the LAMMPS build will import when this package library is used

mscg_SYSINC = 
mscg_SYSLIB =  -lgsl -lgslcblas
mscg_SYSPATH = 
Loading