SUB_DIRS = $(wildcard ice*/.) build: for dir in $(SUB_DIRS); do \ $(MAKE) -C $$dir build; \ done; ./gen_mcs.sh clean: for dir in $(SUB_DIRS); do \ $(MAKE) -C $$dir clean; \ done; clobber: for dir in $(SUB_DIRS); do \ $(MAKE) -C $$dir clobber; \ done;