#!/usr/local/gnu/bin/make
#
# This make file builds the TreadMarks simulation code
#
# History
# -------
# $Log: Makefile,v $
# Revision 1.3  1998/07/27  13:47:00  dieter
# Exit if there is an error compiling a subdirectory.
#
# Revision 1.2  1998/02/19  20:21:42  dieter
# Do not use the -C option becuase Sun make does not support it.
#
# Revision 1.1  1997/10/16  21:19:08  dieter
# Initial revision
#
#
SUBDIRS= src apps 

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) install; then \
			/bin/true; \
		else \
			exit 2; \
		fi; \
		cd ..; \
	done

dummy:
