]> gitweb @ CieloNegro.org - autobuild.git/blobdiff - src/main.bash
distcheck should set DISTCHECK_CONFIGURE_FLAGS properly.
[autobuild.git] / src / main.bash
index 0e902119b1fde6af02286913d3105d39de8a9033..f5659701c632389c9844480d97ed8d48d1ff4ba3 100644 (file)
@@ -1,5 +1,5 @@
 function runMake () {
-    run gmake -w -j $(detectNumCPUs) $@
+    run gmake -w -j $(detectNumCPUs) "$@"
 }
 
 function configure () {
@@ -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 () {
@@ -60,7 +60,7 @@ Usage: $0 [COMMAND]
 
 This is an automation script designed to work with autotools. It creates a
 directory "./_build" and builds any files inside it. Its behaviour is
-somewhat configurable: see "./Build.rc" for details.
+somewhat configurable: See "./Build.rc" for details.
 
 If no COMMAND is given, it defaults to "build".