help :
	@ echo
	@ echo "Make sure you are using the correct Bmake.inc for your system."
	@ echo "At this level, assuming you have downloaded the necessary files,"
	@ echo "you may make the BLACS tester (make tester), or one of the BLACS"
	@ echo "versions (make cmmd, make mpi, make mpl, make nx, or make pvm)"
	@ echo "You can remove the binaries of the various packages by prepending"
	@ echo "clean to the name.  Examples:  make cleanmpi ; make cleantester."
	@ echo "You can define the make macro 'what' to perform a specific action."
	@ echo "Example: make tester what=clean"
	@ echo "There are short README files in this directory, TESTING/ and SRC/."
	@ echo "The following papers are all available on netlib:"
	@ echo "  Installing and Testing the BLACS"
	@ echo "  A User's Guide to the BLACS v1.0"
	@ echo "MPIBLACS users should also look at:"
	@ echo "  Outstanding Issues in the MPIBLACS"
	@ echo "  Some Plebian Extensions to MPI"
	@ echo

all : cmmd mpl nx pvm tester


cleanall: cleancmmd cleanmpi cleanmpl cleannx cleanpvm

cleancmmd:
	( cd SRC/CMMD ; make clean )

clean clobber cleanmpi:
	( cd SRC/MPI  ; make clean )

cleanmpl:
	( cd SRC/MPL  ; make clean )

cleannx:
	( cd SRC/NX   ; make clean )

cleanpvm:
	( cd SRC/PVM  ; make clean )

cleantester:
	( cd TESTING ; make clean )

testing: tester
xbtest : tester
test   : tester
tester :
	( cd TESTING ; make $(what) )

CM5  : CMMD
cmmd : CMMD
CMMD :
	( cd SRC/CMMD ; make $(what) )

SP1 : MPL
SP2 : MPL
mpl : MPL
MPL :
	( cd SRC/MPL ; make $(what) )

mpi : MPI
MPI :
	( cd SRC/MPI ; make $(what) )

intel   : NX
ipsc2   : NX
i860    : NX
delta   : NX
gamma   : NX
paragon : NX
nx      : NX
NX :
	( cd SRC/NX ; make $(what) )

pvm : PVM
PVM :
	( cd SRC/PVM ; make $(what) )
