# File         : Makefile
# Author       : Sung-Hoon Ko
# Created      : Thu Aug 1998
# Revision     : ver 1.1
# Updated      : $Date: 1998/11/11 23:05:52 $
# Copyright: Northeast Parallel Architectures Center at Syracuse University 1998

SHELL       = /bin/sh

VPATH = .:${srcdir}

srcdir = @srcdir@
top_srcdir = @top_srcdir@


SUBDIR  = mpi 
PACKAGE = mpi
API_DOCdir = ${top_srcdir}/doc/api


all: Makefile 
	@echo "Recursively making subdir:" ${SUBDIR}
	@for i in ${SUBDIR}; \
	do (cd $$i; \
	echo "--- Making" $$i;\
	$(MAKE) "MAKE=$(MAKE)"); done


Makefile: ${srcdir}/Makefile.in
	@echo
	@echo Please configure the package to generate new makefile ...
	@exit

apidoc:
	@echo "Generating mpiJava API documentations in /doc/api."
	javadoc -d  ${API_DOCdir} ${PACKAGE}

clean:
	@for i in ${SUBDIR}; \
	do (cd $$i; $(MAKE) "MAKE=$(MAKE)" clean); done
