# Build the shared library support.
#
# Copyright (c) 1996, 1997
#	Transvirtual Technologies, Inc.  All rights reserved.
#
# See the file "lib-license.terms" for information on usage and redistribution 
# of this file. 

srcdir=		@srcdir@
MKDIR=		@MKDIR@
subdirs=	native net zip math management awt

#
# only recurse into subdirectories that contain generated makefiles.
# for example, awt might not have one if we don't have X11 installed
#

all:
	@for i in $(subdirs); \
		do (test ! -f $$i/Makefile || (cd $$i && $(MAKE) all)) || exit 1 ; done

clean:
	for i in $(subdirs); \
		do (test ! -f $$i/Makefile || (cd $$i && $(MAKE) clean)) ; done

distclean:
	for i in $(subdirs); do \
		(test ! -f $$i/Makefile || (cd $$i && $(MAKE) distclean)) ; done
	rm -f Makefile .depend
	-rmdir $(subdirs)

install:
	for i in $(subdirs); do \
		(test ! -f $$i/Makefile || (cd $$i && $(MAKE) install)) || exit 1 ; done

derived-files:
	for i in $(subdirs); do \
		(test ! -f $$i/Makefile || (cd $$i && $(MAKE) derived-files)) || exit 1 ; done

depend:
	for i in $(subdirs); do \
		(test ! -f $$i/Makefile || (cd $$i && $(MAKE) depend)) || exit 1 ; done
