]> gitweb @ CieloNegro.org - autobuild.git/blobdiff - src/main.bash
Don't pass --prefix to DISTCHECK_CONFIGURE_FLAGS. It interferes with automake.
[autobuild.git] / src / main.bash
index eb488232873c629bd5ee3d786d544fb1cf325080..73dc7cb3aeee6a61c157b4ac136324194192971c 100644 (file)
@@ -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 () {