2 run gmake -w -j $(detectNumCPUs) $@
5 function configure () {
6 if [[ ! -f configure.ac && ! -f configure.in ]]; then
7 echo "ERROR: Neither configure.ac nor configure.in exists in the current directory." >&2
11 if [[ ! -f configure ]]; then
12 run autoreconf -v -i -f
15 if [[ ! -f "_build/Makefile" ]]; then
18 run ../configure "${configArgs[@]}"
25 runMake -C "_build" $buildTarget
30 runMake -C "_build/$docDirectory" $docTarget
35 runMake -C "_build" check
44 runMake -C "_build" dist
49 runMake -C "_build" install
60 echo "Usage: $0 [build | doc | check | clean | dist | install]" >&2