-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathautomatic_make_installed.sh
More file actions
executable file
·89 lines (80 loc) · 2.91 KB
/
automatic_make_installed.sh
File metadata and controls
executable file
·89 lines (80 loc) · 2.91 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Copyright (c) 2017 The University of Manchester
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# 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.
# 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 and Install if needed
if [ "$2" == "install" ]; then
make -C $1 install || exit $?
else
make -C $1 || exit $?
fi
fi
}
BASEDIR=$(dirname "$0")
echo "$BASEDIR"
C_INSTALLS=$(realpath $BASEDIR/../c_installs)
echo C_INSTALLS "$C_INSTALLS"
if [ -z ${SPINN_INSTALL_DIR+x} ];
then
export SPINN_INSTALL_DIR=$C_INSTALLS/spinnaker_tools
echo "set SPINN_INSTALL_DIR to '$SPINN_INSTALL_DIR'"
else
echo "SPINN_INSTALL_DIR already '$SPINN_INSTALL_DIR'";
fi
if [ -z ${SPINN_COMMON_INSTALL_DIR+x} ];
then
export SPINN_COMMON_INSTALL_DIR=$C_INSTALLS/spinn_common
echo "set SPINN_COMMON_INSTALL_DIR to '$SPINN_COMMON_INSTALL_DIR'"
else
echo "SPINN_COMMON_INSTALL_DIR already '$SPINN_COMMON_INSTALL_DIR'";
fi
if [ -z ${FEC_INSTALL_DIR+x} ];
then
export FEC_INSTALL_DIR=$C_INSTALLS/front_end_common_lib
echo "set FEC_INSTALL_DIR to '$FEC_INSTALL_DIR'"
else
echo "FEC_INSTALL_DIR already '$FEC_INSTALL_DIR'";
fi
if [ -z ${SPYNNAKER_INSTALL_DIRR+x} ];
then
export SPYNNAKER_INSTALL_DIR=$C_INSTALLS/neural_modelling
echo "set SPYNNAKER_INSTALL_DIR to '$SPYNNAKER_INSTALL_DIR'"
else
echo "SPYNNAKER_INSTALL_DIRR already '$SPINN_COMMON_INSTALL_DIR'";
fi
do_make spinnaker_tools install
do_make spinn_common install
do_make SpiNNFrontEndCommon/c_common install
# These are they typical PyNN ones
do_make sPyNNaker/neural_modelling/ install
do_make sPyNNakerNewModelTemplate/c_models/
# These are for users not using PyNN
do_make SpiNNakerGraphFrontEnd/gfe_examples/
do_make SpiNNakerGraphFrontEnd/gfe_integration_tests/
# These are unlikely to be used outside of Manchester University
do_make SpiNNGym/c_code
do_make SpiNNaker_PDP2/c_code
do_make MarkovChainMonteCarlo/c_models
do_make TSPonSpiNNaker/spinnaker_c
do_make BitBrainDemo/bit_brain_host_c
do_make BitBrainDemo/bit_brain_spinnaker_c
python -m spinn_utilities.make_tools.check_database_keys