1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
BASEDIR:=.. include $(BASEDIR)/Makefile.rules SUBDIRS=org 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