-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmake.sh
More file actions
51 lines (45 loc) · 765 Bytes
/
make.sh
File metadata and controls
51 lines (45 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
function MakeCPU(){
echo ""
echo ""
echo ""
echo "Compile CPU code ..."
echo ""
echo ""
echo ""
cd ./CPU/clustalw-2.0.11
./configure && make
cd ../../
}
function MakeGPU(){
echo ""
echo ""
echo ""
echo "Compile GPU code ..."
echo ""
echo ""
echo ""
cd ./GPU/cuda_clustalw_final
./configure && make
cd ../../
}
function MakeClean(){
cd ./CPU/clustalw-2.0.11
make clean
cd ../../
cd ./GPU/cuda_clustalw_final
make clean
cd ../../
}
if [ $# == 0 ]; then
MakeCPU;
MakeGPU;
else
if [ "$1" == "clean" ]; then
MakeClean;
elif [ "$1" == "GPU" ]; then
MakeGPU;
elif [ "$1" == "CPU" ]; then
MakeCPU;
fi
fi