1 2 3 4 5 6
SUBDIRS = mtd ubi ubifs all clean: for dir in $(SUBDIRS) ; do \ (cd $$dir && make $@); \ done