/[escript]/trunk/esys2/mk
ViewVC logotype

Diff of /trunk/esys2/mk

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

revision 96 by jgs, Tue Dec 14 05:39:20 2004 UTC revision 116 by jgs, Fri Apr 1 05:48:48 2005 UTC
# Line 1  Line 1 
1  #!/bin/env bash  #!/bin/bash
2    
3  # $Id$  # $Id$
4  # a brutal building script for esys  # An explicit building script for esys
5    
6  MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley"  MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley"
 #MODULES="escript finley"  
7    
8  if [ "$1" == "clean" ];  if [ "$1" == "clean" ];
9  then  then
10      for module in $MODULES ; do \      for module in $MODULES ; do \
11          (echo Cleaning: $module; cd $module; gmake clean) \          (echo Cleaning: $module; cd $module; gmake clean) \
12      done      done
13            exit
14  fi  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)
# Line 25  fi Line 26  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    
28  for module in $MODULES ; do \  for module in $MODULES ; do \
29      (echo Building: $module; cd $module; make) \      (echo Building: $module; cd $module; gmake) \
30  done  done
31    
32  if [ "$1" == "install" ];  if [ "$1" == "install" ];
33  then  then
34      for module in $MODULES ; do \      for module in $MODULES ; do \
35          (echo Installing: $module; cd $module; make install) \          (echo Installing: $module; cd $module; gmake install) \
36      done      done
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.96  
changed lines
  Added in v.116

  ViewVC Help
Powered by ViewVC 1.1.26