--- trunk/libf/make.sh 2011/02/22 13:49:36 40 +++ trunk/libf/make.sh 2011/04/08 12:43:31 43 @@ -9,12 +9,19 @@ set -xe -compiler=gfortran +compiler=nag_tools + +dest_dir=~/Bureau/Compil_prod_$compiler +##dest_dir=/save/workdir_Lionel/LMDZ_work/LMDZE/Compil_prod_$compiler -##dest_dir=~/Bureau/Compil_prod_$compiler -dest_dir=/save/workdir_Lionel/LMDZ_work/LMDZE/Compil_prod_$compiler # (Do not just use the name of the compiler as a directory name, it # confuses some compilers.) -cp --update --verbose ../Compilers/$compiler.mk $dest_dir/compiler.mk -make -C $dest_dir -f $PWD/GNUmakefile $* libf_dir=$PWD +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"