/[escript]/trunk/mk
ViewVC logotype

Diff of /trunk/mk

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

revision 82 by jgs, Tue Oct 26 06:53:54 2004 UTC revision 109 by jgs, Mon Feb 14 04:14:35 2005 UTC
# Line 2  Line 2 
2  # $Id$  # $Id$
3  # a brutal building script for esys  # a brutal building script for esys
4    
5  #MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley"  export ESYS_ROOT=${ESYS_ROOT:=`pwd`}
 MODULES="escript finley"  
6    
7  if [ "$1" == "clean" ];  MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley"
 then  
     for module in $MODULES ; do \  
         (echo Cleaning: $module; cd $module; make clean) \  
     done  
 fi  
8    
9  (cd escript/lib; if [ ! -e py_src ]; then mkdir py_src; fi)  (cd escript/lib; if [ ! -e py_src ]; then mkdir py_src; fi)
10    
# Line 24  fi Line 18  fi
18  (cd tools/mmio; if [ ! -e Makefile ]; then ln -s ./mmio.mk Makefile; fi)  (cd tools/mmio; if [ ! -e Makefile ]; then ln -s ./mmio.mk Makefile; fi)
19  (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)
20    
21    if [ "$1" == "clean" ];
22    then
23        for module in $MODULES ; do \
24            (echo Cleaning: $module; cd $module; gmake clean) \
25        done
26            exit
27    fi
28    
29  for module in $MODULES ; do \  for module in $MODULES ; do \
30      (echo Building: $module; cd $module; make) \      (echo Building: $module; cd $module; gmake) \
31  done  done
32    
33  (cd escript/lib; if [ ! -e escript.so ]; then ln -s libescript.so escript.so; fi)  if [ "$1" == "install" ];
34  (cd finley/lib; if [ ! -e  finley.so ]; then ln -s libfinley.so finley.so; fi)  then
35        for module in $MODULES ; do \
36            (echo Installing: $module; cd $module; gmake install) \
37        done
38        (cd esys; if [ ! -e escriptcpp.so ]; then ln -s ../lib/libescriptcpp.so escriptcpp.so; fi)
39        (cd esys; if [ ! -e finleycpp.so ]; then ln -s ../lib/libfinleycpp.so finleycpp.so; fi)
40    fi
41    

Legend:
Removed from v.82  
changed lines
  Added in v.109

  ViewVC Help
Powered by ViewVC 1.1.26