/[escript]/trunk/mk
ViewVC logotype

Diff of /trunk/mk

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

revision 109 by jgs, Mon Feb 14 04:14:35 2005 UTC revision 116 by jgs, Fri Apr 1 05:48:48 2005 UTC
# Line 1  Line 1 
1  #!/bin/env bash  #!/bin/bash
 # $Id$  
 # a brutal building script for esys  
2    
3  export ESYS_ROOT=${ESYS_ROOT:=`pwd`}  # $Id$
4    # An explicit building script for esys
5    
6  MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley"  MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley"
7    
8    if [ "$1" == "clean" ];
9    then
10        for module in $MODULES ; do \
11            (echo Cleaning: $module; cd $module; gmake clean) \
12        done
13            exit
14    fi
15    
16  (cd escript/lib; if [ ! -e py_src ]; then mkdir py_src; fi)  (cd escript/lib; if [ ! -e py_src ]; then mkdir py_src; fi)
17    
18  (cd escript/inc; if [ ! -e escript ]; then ln -s ../src escript; fi)  (cd escript/inc; if [ ! -e escript ]; then ln -s ../src escript; fi)
# Line 18  MODULES="tools/CppUnitTest tools/mmio es Line 25  MODULES="tools/CppUnitTest tools/mmio es
25  (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)
26  (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)
27    
 if [ "$1" == "clean" ];  
 then  
     for module in $MODULES ; do \  
         (echo Cleaning: $module; cd $module; gmake clean) \  
     done  
         exit  
 fi  
   
28  for module in $MODULES ; do \  for module in $MODULES ; do \
29      (echo Building: $module; cd $module; gmake) \      (echo Building: $module; cd $module; gmake) \
30  done  done
# Line 38  then Line 37  then
37      (cd esys; if [ ! -e escriptcpp.so ]; then ln -s ../lib/libescriptcpp.so escriptcpp.so; fi)      (cd esys; if [ ! -e escriptcpp.so ]; then ln -s ../lib/libescriptcpp.so escriptcpp.so; fi)
38      (cd esys; if [ ! -e finleycpp.so ]; then ln -s ../lib/libfinleycpp.so finleycpp.so; fi)      (cd esys; if [ ! -e finleycpp.so ]; then ln -s ../lib/libfinleycpp.so finleycpp.so; fi)
39  fi  fi
   

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

  ViewVC Help
Powered by ViewVC 1.1.26