BASEDIR:=../../../../../../.. include $(BASEDIR)/Makefile.rules SUBDIRS= SOURCES= CLASSES= all: allsubs clean: cleanme cleanme: rm -f *.class $(TARGETS:%=%subs): %subs : for dir in $(SUBDIRS) ; do \ (cd $$dir && pwd && $(MAKE) $(MFLAGS) $*) || exit 1 ; \ done