1 |
guez |
3 |
# This is a script in Bash. |
2 |
|
|
|
3 |
guez |
7 |
# This script allows to build LMDZE into a directory other than |
4 |
guez |
40 |
# "libf". If you just want to build into "libf" with the current |
5 |
|
|
# compiler file, you can invoke "make" directly. |
6 |
guez |
3 |
|
7 |
guez |
7 |
# Usage: |
8 |
guez |
40 |
# make.sh [options and arguments for make] |
9 |
guez |
7 |
|
10 |
guez |
40 |
set -xe |
11 |
guez |
7 |
|
12 |
guez |
43 |
compiler=nag_tools |
13 |
guez |
7 |
|
14 |
guez |
43 |
dest_dir=~/Bureau/Compil_prod_$compiler |
15 |
|
|
##dest_dir=/save/workdir_Lionel/LMDZ_work/LMDZE/Compil_prod_$compiler |
16 |
|
|
|
17 |
guez |
7 |
# (Do not just use the name of the compiler as a directory name, it |
18 |
|
|
# confuses some compilers.) |
19 |
guez |
3 |
|
20 |
guez |
43 |
if [[ ../Compilers/$compiler.mk -nt $dest_dir/compiler.mk ]] |
21 |
|
|
then |
22 |
|
|
cp --force ../Compilers/$compiler.mk $dest_dir/compiler.mk |
23 |
|
|
chmod a-w $dest_dir/compiler.mk |
24 |
|
|
fi |
25 |
|
|
|
26 |
|
|
make -C $dest_dir -f $PWD/GNUmakefile -I$PWD $* libf_dir=$PWD |
27 |
|
|
# "-I" option for "nag_rules.mk" |