MAKEFILES := $(shell find . -mindepth 2 -maxdepth 2 -name Makefile)

all:
	@for i in $(MAKEFILES); do \
		echo "-----------------------------------------------------------"; \
		$(MAKE) -C `dirname $$i` || exit 1; \
	done;

clean:
	@for i in $(MAKEFILES); do \
		$(MAKE) -C `dirname $$i` clean || exit 1; \
	done;