forked from UHHAnalysis/SFrameTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakeall
More file actions
executable file
·29 lines (25 loc) · 751 Bytes
/
makeall
File metadata and controls
executable file
·29 lines (25 loc) · 751 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
#!/bin/bash
# usage from the SFrame main directory:
# ./makeall <make parameters>
#
# This calls "make <make parameters>" in
# * the current directory (to build SFrame)
# * each direct sub directory with a Makefile (to build user cycles, SFrameTools, SFrameAnalysis, ...)
# * SFrameTools/JetMETObjects
#
# typical usage to re-build everything:
# ./makeall disctlean; ./makeall -j 4
target=$*
DIR0=$PWD
for d in `find . -maxdepth 1 -mindepth 1 -type d` SFrameTools/JetMETObjects; do
if [ -f "${d}/Makefile" ]; then
echo "***** building directory $d"
cd ${d}
make $target
if [ $? -gt 0 ]; then
echo "***** Build failed in directory $d (see above for errors); stopping"
exit 1
fi
cd $DIR0
fi
done