# Makefile for sysprog 1h
# Author:	Manuel Mausz (0728348)
# Created:	11.03.2009


SUBDIRS=	mycat gluefile
RECURSIVE_TARGETS=	all-recursive debug test clean

all: all-recursive

$(RECURSIVE_TARGETS):
	@failcom='exit 1'; \
	target=`echo $@ | sed s/-recursive//`; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  echo "Making $$target in $$subdir"; \
	  (cd $$subdir && $(MAKE) $$target) \
	  || eval $$failcom; \
	done; \
	test -z "$$fail"

.PHONY: clean

# vim600: noet sw=8 ts=8
