#!/usr/local/gnu/bin/make
#
# This make file builds the unify library
#
# History
# -------
# $Log: Makefile,v $
# Revision 1.4  1998/07/27  13:38:15  dieter
# Also exit for depend or install targets.
#
# Revision 1.3  1998/07/27  13:15:47  dieter
# Exit with an error code if there is an error compiling one of the
# subdirectories.
#
# Revision 1.2  1998/02/19  20:21:25  dieter
# Do not use the -C option becuase Sun make does not support it.
#
# Revision 1.1  1997/09/22  22:23:04  dieter
# Initial revision
#
#
SUBDIRS = src

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

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

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

install: dummy
	@for dir in $(SUBDIRS); do \
		cd $$dir; \
		if $(MAKE) LIB_INSTALL_DIR=${LIB_INSTALL_DIR} install; then \
			/bin/true; \
		else \
			exit 2;\
		fi; \
		cd ..; \
	done

dummy:
