File tree Expand file tree Collapse file tree 2 files changed +13
-16
lines changed Expand file tree Collapse file tree 2 files changed +13
-16
lines changed Original file line number Diff line number Diff line change 1
1
# -*- Makefile -*-
2
2
3
- # arch = UNKNOWN
4
- setup_file = UNKNOWN
3
+ arch = UNKNOWN
4
+ setup_file = setup/Make. $( arch )
5
5
6
- # include setup/Make.$(arch)
7
6
include $(setup_file )
8
7
9
8
Original file line number Diff line number Diff line change @@ -5,19 +5,18 @@ bld_path=`pwd`
5
5
6
6
# FIXME: need to check whether src and bld are the same (test f1 -ef f2)
7
7
8
- # if test x"$#" != x"1" -o x`echo "$1" | sed -e 's/arch=..*/arch=/'` != x"arch=" -o x`echo "$1" | sed -e 's/arch=//'` = "x" ; then
9
- # echo
10
- # echo Please specify '"'arch'"' argument, for example:
11
- # echo
12
- # echo $0 arch= Unix
13
- # echo
14
- # exit 127
15
- # fi
8
+ if test x" $# " ! = x" 1" -o x" $1 " = " x" ; then
9
+ echo
10
+ echo Please specify ' "' arch' "' argument, for example:
11
+ echo
12
+ echo $0 Unix
13
+ echo
14
+ exit 127
15
+ fi
16
16
17
- # arg_arch=`echo "$1" | sed -e 's/arch=//'`
17
+ arg_arch=" $1 "
18
18
19
- # setup_file=${src_path}/setup/Make.${arg_arch}
20
- setup_file=" $1 "
19
+ setup_file=${src_path} /setup/Make.${arg_arch}
21
20
22
21
if test ! -f $setup_file ; then
23
22
echo
@@ -32,8 +31,7 @@ if test -d $mkfile -o -f $mkfile ; then
32
31
rm -rf $mkfile
33
32
fi
34
33
35
- # sed -e "s:HPCG_ROOT_PATH:${bld_path}:g" ${src_path}/Makefile.ext | sed -e "s:HPCG_SRC_PATH:${src_path}:g" | sed -e "s:UNKNOWN:${arg_arch}:" > $mkfile
36
- sed -e " s:HPCG_ROOT_PATH:${bld_path} :g" ${src_path} /Makefile.ext | sed -e " s:HPCG_SRC_PATH:${src_path} :g" | sed -e " s:UNKNOWN:${setup_file} :" > $mkfile
34
+ sed -e " s:HPCG_ROOT_PATH:${bld_path} :g" ${src_path} /Makefile.ext | sed -e " s:HPCG_SRC_PATH:${src_path} :g" | sed -e " s:UNKNOWN:${arg_arch} :" > $mkfile
37
35
38
36
# creating missing directories
39
37
for path in src testing bin setup
You can’t perform that action at this time.
0 commit comments