####################################################################
#   Copyright (c)
#
#   You may copy, distribute, and modify it freely as long as you  #
#   preserve this copyright and permission notice.                 #
#                                                                  #
#
####################################################################

#
#  Makefile for Adlib/src/hpjava
#

SHELL   = /bin/sh

srcdir      = @srcdir@
top_srcdir  = @top_srcdir@

SUBDIR  = native lang spmd

VPATH = .:${srcdir}

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

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

distclean:
	@for i in ${SUBDIR}; \
	do (cd $$i; $(MAKE) "MAKE=$(MAKE)" distclean); done
	@rm -f Makefile

install:
	@echo "Recursively installing subdir:" ${SUBDIR}
	@for i in ${SUBDIR}; \
	do (cd $$i; \
	echo "--- Installing" $$i;\
	$(MAKE) "MAKE=$(MAKE)" install); done

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












