2 # check if we have multiple processors/cores
5 n
=$
(grep ^processor
/proc
/cpuinfo
2>/dev
/null |
wc -l)
8 # If we are compiling with distcc, try to guess a reasonable number
9 # based on (a) the number of cores on this machine and (b) the number
10 # of words in the DISTCC_HOSTS variable.
11 d
="$(echo $DISTCC_HOSTS | wc -w)"
12 n
=$
(($n + 2 * $n * $d))
13 echo preparing
, parallel
=$n...
14 if test -f Makefile
; then
15 make maintainer-clean
> /dev
/null
2>&1
17 aclocal
-I .
> /dev
/null
2>&1
21 .
/configure $@
> /dev
/null
23 make clean2
> /dev
/null
2>&1
24 make -j $n > /dev
/null