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