runMake -C "_build" dist
}
+function distcheck () {
+ configure
+ runMake -C "_build" distcheck
+}
+
function install () {
build
runMake -C "_build" install "$0"
configure run autoreconf(1) and "./configure" if necessary.
clean run "rm -rf _build"
dist run "make dist"
+ distcheck run "$0 configure" then "make distcheck"
doc similar to "$0 build" but only build the documentation.
install [ARG] run "$0 build" then "make install [ARG]".
"check" ) cmd="check" ;;
"clean" ) cmd="clean" ;;
"dist" ) cmd="dist" ;;
+ "distcheck") cmd="distcheck";;
"install" ) cmd="install" ;;
*) cmd="usage" ;;
esac