/[escript]/trunk/mk
ViewVC logotype

Diff of /trunk/mk

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

revision 98 by jgs, Wed Dec 15 03:43:28 2004 UTC revision 103 by jgs, Fri Dec 17 07:43:04 2004 UTC
# Line 2  Line 2 
2  # $Id$  # $Id$
3  # a brutal building script for esys  # a brutal building script for esys
4    
5    export ESYS_ROOT=${ESYS_ROOT:=`pwd`}
6    
7  MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley"  MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley"
8  #MODULES="escript finley"  #MODULES="escript finley"
9    
10  if [ "$1" == "clean" ];  if [ "$1" == "clean" ];
11  then  then
12      for module in $MODULES ; do \      for module in $MODULES ; do \
13          (echo Cleaning: $module; cd $module; make clean) \          (echo Cleaning: $module; cd $module; gmake clean) \
14      done      done
15            exit
16  fi  fi
17    
18  (cd escript/lib; if [ ! -e py_src ]; then mkdir py_src; fi)  (cd escript/lib; if [ ! -e py_src ]; then mkdir py_src; fi)
# Line 25  fi Line 28  fi
28  (cd tools/CppUnitTest; if [ ! -e Makefile ]; then ln -s ./CppUnitTest.mk Makefile; fi)  (cd tools/CppUnitTest; if [ ! -e Makefile ]; then ln -s ./CppUnitTest.mk Makefile; fi)
29    
30  for module in $MODULES ; do \  for module in $MODULES ; do \
31      (echo Building: $module; cd $module; make) \      (echo Building: $module; cd $module; gmake) \
32  done  done
33    
34  (cd escript/lib; if [ ! -e escript.so ]; then ln -s libescript.so escript.so; fi)  if [ "$1" == "install" ];
35  (cd finley/lib; if [ ! -e  finley.so ]; then ln -s libfinley.so finley.so; fi)  then
36        for module in $MODULES ; do \
37            (echo Installing: $module; cd $module; gmake install) \
38        done
39        (cd esys; if [ ! -e escriptcpp.so ]; then ln -s ../lib/libescriptcpp.so escriptcpp.so; fi)
40        (cd esys; if [ ! -e finleycpp.so ]; then ln -s ../lib/libfinleycpp.so finleycpp.so; fi)
41    fi
42    

Legend:
Removed from v.98  
changed lines
  Added in v.103

  ViewVC Help
Powered by ViewVC 1.1.26