run gmake -w -j $(detectNumCPUs) "$@"
}
+function autogen () {
+ run autoreconf -v -i -f
+}
+
function configure () {
if [[ ! -f configure.ac && ! -f configure.in ]]; then
echo "ERROR: Neither configure.ac nor configure.in exists in the current directory." >&2
fi
if [[ ! -f configure ]]; then
- run autoreconf -v -i -f
+ autogen
fi
if [[ ! -f "_build/Makefile" ]]; then
Commands:
build run "$0 configure" then make(1)
check [ARG] run "$0 build" then "make check [ARG]"
- configure run autoreconf(1) and "./configure" if necessary
+ autogen run autoreconf(1)
+ configure run "$0 autogen" and "./configure" if necessary
clean run "rm -rf _build"
dist run "make dist"
distcheck run "$0 configure" then "make distcheck"
local cmd
case "$1" in
""|"build" ) cmd="build" ;;
+ "autogen" ) cmd="autogen" ;;
"configure") cmd="configure";;
"doc" ) cmd="doc" ;;
"check" ) cmd="check" ;;