#
# Makefile for event library
#
# Rajitha C. Sumanasekera
# University of Kentucky 
#
# History
# -------
# $Log: Makefile,v $
# Revision 1.6  1998/07/27  12:52:18  dieter
# Exit with an error code if there is an error compiling one of the
# subdirectories.
#
# Revision 1.5  1998/02/23  17:07:17  rajitha
# Modified clean target
# ..
#
# Revision 1.4  1998/02/19  20:21:04  dieter
# Do not use the -C option becuase Sun make does not support it.
#
# Revision 1.3  1997/09/22  21:33:11  dieter
# Changes for new directory structure.
#
#

SUBDIRS= src test # util

all: dummy
	@for dir in $(SUBDIRS); do \
		cd $$dir; \
		if $(MAKE); then \
			/bin/true; \
		else \
			exit 1; \
		fi; \
		cd ..; \
	done

clean: dummy
	for dir in $(SUBDIRS); do cd $$dir; $(MAKE) clean; cd ..; done
	rm -f *~
	rm -f config.*

depend: dummy
	for dir in $(SUBDIRS); do cd $$dir; $(MAKE) depend; cd ..; done

install: dummy
	for dir in $(SUBDIRS); do cd $$dir; $(MAKE) LIB_INSTALL_DIR=${LIB_INSTALL_DIR} install; cd ..; done

dummy:
