/[escript]/trunk/mk
ViewVC logotype

Diff of /trunk/mk

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 136 by jgs, Fri Jul 22 07:06:09 2005 UTC revision 146 by jgs, Fri Jul 29 01:44:29 2005 UTC
# Line 10  Line 10 
10  #**********************************************************************  #**********************************************************************
11    
12  # the modules to make  # the modules to make
13  MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley modellib"  MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley"
14    
15  # the tests to run  # the tests to run
16  TESTS="escript finley"  TESTS="escript finley"
# Line 30  fi Line 30  fi
30    
31  # use this setting for production installs on altix  # use this setting for production installs on altix
32  # ** NB: overwrites centrally installed esys libraries on altix ***  # ** NB: overwrites centrally installed esys libraries on altix ***
33  #ENVVARS="L_INSTLIB_DIR=/raid2/tools/esys/lib L_PYTH_DIR=/raid2/tools/esys/esys"  # ENVVARS="$ENVVARS L_INSTLIB_DIR=/raid2/tools/esys/lib L_PYTH_DIR=/raid2/tools/esys/esys"
34    
35  # ensure required symlinks are setup first  # ensure required symlinks are setup first
36  (cd escript/inc; if [ ! -h escript ]; then ln -s ../src escript; fi)  (cd escript/inc; if [ ! -h escript ]; then ln -s ../src escript; fi)
# Line 48  fi Line 48  fi
48  if [ "$1" == "clean" ];  if [ "$1" == "clean" ];
49  then  then
50      for module in $MODULES ; do \      for module in $MODULES ; do \
51          (echo Cleaning: $module; cd $module; gmake clean) \          (echo Cleaning: $module; cd $module; make clean) \
52      done      done
53          exit          exit
54  fi  fi
# Line 64  fi Line 64  fi
64    
65  # default case - just build all modules  # default case - just build all modules
66  for module in $MODULES ; do \  for module in $MODULES ; do \
67      (echo Building: $module; cd $module; env $ENVVARS gmake -j 10) \      (echo Building: $module; cd $module; env $ENVVARS make -j 10) \
68  done  done
69    
70  # install all modules  # install all modules
71  if [ "$1" == "install" ];  if [ "$1" == "install" ];
72  then  then
73      for module in $MODULES ; do \      for module in $MODULES ; do \
74          (echo Installing: $module; cd $module; env $ENVVARS gmake install) \                   echo ENVARS = $ENVVARS
75            (echo Installing: $module; cd $module; env $ENVVARS make install) \
76      done      done
77          (cd esys/escript; if [ ! -h escriptcpp.so ]; then ln -s ../lib/libescriptcpp.so escriptcpp.so; fi)          (cd esys/escript; if [ ! -h escriptcpp.so ]; then ln -s ../../lib/libescriptcpp.so escriptcpp.so; fi)
78          (cd esys/finley; if [ ! -h finleycpp.so ]; then ln -s ../lib/libfinleycpp.so finleycpp.so; fi)          (cd esys/finley; if [ ! -h finleycpp.so ]; then ln -s ../../lib/libfinleycpp.so finleycpp.so; fi)
79  fi  fi
80    
81  # run the unit tests  # run the unit tests

Legend:
Removed from v.136  
changed lines
  Added in v.146

  ViewVC Help
Powered by ViewVC 1.1.26