aimk
, architecture independent make
# Make wrapper for multiple arch. builds.
#
# Automatically sets PVM_ARCH and PVM_ROOT for make to use.
#
# Action depends on makefile locations:
# 1. If $PVM_ARCH/Makefile or $PVM_ARCH/makefile exists,
# chdir to $PVM_ARCH and exec make there.
#
# 2. Else if ./Makefile.aimk exists,
# chdir to $PVM_ARCH and exec make
# with -f $PVM_ROOT/conf/$PVM_ARCH.def
# and -f ../Makefile.aimk PVM_ARCH=$PVM_ARCH
#
# 3. Else will simply exec make in cwd.
#
# usage:
# aimk [-here] [-nomk] [ make args ... ]
#