/[escript]/trunk/mk
ViewVC logotype

Annotation of /trunk/mk

Parent Directory Parent Directory | Revision Log Revision Log


Revision 120 - (hide annotations)
Tue Apr 12 04:46:34 2005 UTC (14 years, 3 months ago) by jgs
Original Path: trunk/esys2/mk
File size: 1551 byte(s)
Missed mk in merge back to main trunk - whoops!

1 jgs 116 #!/bin/bash
2    
3 jgs 82 # $Id$
4 jgs 116 # An explicit building script for esys
5 jgs 82
6 jgs 85 MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley"
7 jgs 82
8 jgs 120 # use for local developmental builds
9     ENVVARS="DODEBUG=YES"
10    
11     # use for production installs - NB: overwrites installed esys llibraries
12     #ENVVARS="L_INSTLIB_DIR=/raid2/tools/esys/lib L_PYTH_DIR=/raid2/tools/esys/esys"
13    
14 jgs 116 if [ "$1" == "clean" ];
15     then
16     for module in $MODULES ; do \
17     (echo Cleaning: $module; cd $module; gmake clean) \
18     done
19     exit
20     fi
21    
22 jgs 82 (cd escript/lib; if [ ! -e py_src ]; then mkdir py_src; fi)
23    
24     (cd escript/inc; if [ ! -e escript ]; then ln -s ../src escript; fi)
25     (cd esysUtils/inc; if [ ! -e esysUtils ]; then ln -s ../src esysUtils; fi)
26     (cd finley/inc; if [ ! -e finley ]; then ln -s ../src finley; fi)
27    
28     (cd escript; if [ ! -e Makefile ]; then ln -s ./escript.mk Makefile; fi)
29     (cd esysUtils; if [ ! -e Makefile ]; then ln -s ./esysUtils.mk Makefile; fi)
30     (cd finley; if [ ! -e Makefile ]; then ln -s ./finley.mk Makefile; fi)
31     (cd tools/mmio; if [ ! -e Makefile ]; then ln -s ./mmio.mk Makefile; fi)
32     (cd tools/CppUnitTest; if [ ! -e Makefile ]; then ln -s ./CppUnitTest.mk Makefile; fi)
33    
34     for module in $MODULES ; do \
35 jgs 120 (echo Building: $module; cd $module; env $ENVVARS gmake) \
36 jgs 82 done
37    
38 jgs 101 if [ "$1" == "install" ];
39     then
40     for module in $MODULES ; do \
41 jgs 120 (echo Installing: $module; cd $module; env $ENVVARS gmake install ) \
42 jgs 101 done
43     fi
44 jgs 120
45     (cd esys; if [ ! -e escriptcpp.so ]; then ln -s ../lib/libescriptcpp.so escriptcpp.so; fi)
46     (cd esys; if [ ! -e finleycpp.so ]; then ln -s ../lib/libfinleycpp.so finleycpp.so; fi)

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26