-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake
executable file
·53 lines (41 loc) · 955 Bytes
/
make
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
51
52
#!/bin/bash
debug='-D CMAKE_BUILD_TYPE=Debug' # debug='' pour build en release
#Trouve le nombre de core
core=`grep -c ^processor /proc/cpuinfo`
jobs=`expr $core + 1`
if [ ! -e ./biblio ]; then
echo "Placez vous dans risk/"
exit 1
fi
if [ ! -e biblio/build ]; then
mkdir biblio/build
fi
if [ ! -e communsce/build ]; then
mkdir communsce/build
fi
if [ ! -e editeur/build ]; then
mkdir editeur/build
fi
if [ ! -e client/build ]; then
mkdir client/build
fi
cd biblio/build
cmake $debug ..
if [ $? -ne 0 ]; then exit 1 ; fi
make -j$jobs
if [ $? -ne 0 ]; then exit 1 ; fi
cd ../../communsce/build
cmake $debug ..
if [ $? -ne 0 ]; then exit 1 ; fi
make -j$jobs
if [ $? -ne 0 ]; then exit 1 ; fi
cd ../../editeur/build
cmake $debug ..
if [ $? -ne 0 ]; then exit 1 ; fi
make -j$jobs
if [ $? -ne 0 ]; then exit 1 ; fi
cd ../../client/build
cmake $debug ..
if [ $? -ne 0 ]; then exit 1 ; fi
make -j$jobs
if [ $? -ne 0 ]; then exit 1 ; fi