X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=src%2Fmain.bash;h=73dc7cb3aeee6a61c157b4ac136324194192971c;hb=76881c35722580dbae0e03fd4fb0558e6401a4b8;hp=eb488232873c629bd5ee3d786d544fb1cf325080;hpb=529fe38e15c42d084b7df8c4a167d2a23a9f7002;p=autobuild.git diff --git a/src/main.bash b/src/main.bash index eb48823..73dc7cb 100644 --- a/src/main.bash +++ b/src/main.bash @@ -1,5 +1,5 @@ function runMake () { - run gmake -w -j $(detectNumCPUs) $@ + run gmake -w -j $(detectNumCPUs) "$@" } function configure () { @@ -15,7 +15,7 @@ function configure () { if [[ ! -f "_build/Makefile" ]]; then run mkdir -p _build run pushd _build - run ../configure "${configArgs[@]}" + run ../configure --prefix="$prefix" "${configArgs[@]}" run popd fi } @@ -46,12 +46,12 @@ function dist () { function distcheck () { configure - runMake -C "_build" distcheck + runMake -C "_build" distcheck DISTCHECK_CONFIGURE_FLAGS="${configArgs[*]}" } function install () { build - runMake -C "_build" install "$0" + runMake -C "_build" install "$@" } function usage () {