--- trunk/libf/make.sh 2008/02/27 13:16:39 3 +++ trunk/libf/make.sh 2011/04/27 13:00:12 45 @@ -1,11 +1,28 @@ # This is a script in Bash. -# This script builds LMDZE. It is useful only to build into a -# directory other than "libf". If you want to build into "libf", you -# can just invoke "make" directly. +# This script allows to build LMDZE into a directory other than +# "libf". If you just want to build into "libf" with the current +# compiler file, you can invoke "make" directly. -dest_dir=/home/guez/In_transit/LMDZE_work/Compil_prod -##dest_dir=$workdir/LMDZE/Compil_prod +# Usage: +# make.sh [options and arguments for make] set -xe -gmake -C $dest_dir -f $PWD/GNUmakefile -I$PWD $* libf_dir=$PWD + +compiler=gfortran +##compiler=nag_tools + +dest_dir=/save/workdir_Lionel/LMDZ_work/LMDZE/Compil_prod_$compiler +##dest_dir=~/Bureau/Compil_prod_$compiler + +# (Do not just use the name of the compiler as a directory name, it +# confuses some compilers.) + +if [[ ../Compilers/$compiler.mk -nt $dest_dir/compiler.mk ]] +then + cp --force ../Compilers/$compiler.mk $dest_dir/compiler.mk + chmod a-w $dest_dir/compiler.mk +fi + +make -C $dest_dir -f $PWD/GNUmakefile -I$PWD $* libf_dir=$PWD +# "-I" option for "nag_rules.mk"