-
Notifications
You must be signed in to change notification settings - Fork 0
/
automatic_make.sh
39 lines (37 loc) · 1.23 KB
/
automatic_make.sh
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
# This script assumes it is run from the directory holding all github projects in parallel
# bash SupportScripts/automatic_make.sh
do_make() {
if [ -d "$1" ]; then
# Control will enter here if DIRECTORY exists.
# Run setup.bash if it exists
if [ -f "$1/setup.bash" ]; then
cd $1
source setup.bash || exit $?
cd -
fi
if [ -f "$1/setup" ]; then
cd $1
source setup || exit $?
cd -
fi
# Clean
make -C $1 clean || exit $?
# Clean installation; ignore error if install-clean doesn't work
# (probably because there is no install clean for most targets)
make -C $1 install-clean || true
# Make
make -C $1 || exit $?
# Install if needed
if [ "$2" == "install" ]; then
make -C $1 install || exit $?
fi
fi
}
do_make spinnaker_tools
do_make spinn_common install
do_make SpiNNFrontEndCommon/c_common/front_end_common_lib install
do_make SpiNNFrontEndCommon/c_common/ install
do_make sPyNNaker/neural_modelling/
do_make sPyNNaker8NewModelTemplate/c_models/
do_make SpiNNakerGraphFrontEnd/spinnaker_graph_front_end/examples/
do_make spinngym/c_code/