| @for DIR in $(SUBDIRS); do \ |
| BUILD_TARGET=$(OUTPUT)/$$DIR; \ |
| mkdir $$BUILD_TARGET -p; \ |
| make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\ |
| #SUBDIR test prog name should be in the form: SUBDIR_test.sh \ |
| if [ -e $$DIR/$$TEST ]; then \ |
| rsync -a $$DIR/$$TEST $$BUILD_TARGET/; \ |
| override define RUN_TESTS |
| override define INSTALL_RULE |
| install -t $(INSTALL_PATH) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) |
| @for SUBDIR in $(SUBDIRS); do \ |
| BUILD_TARGET=$(OUTPUT)/$$SUBDIR; \ |
| mkdir $$BUILD_TARGET -p; \ |
| $(MAKE) OUTPUT=$$BUILD_TARGET -C $$SUBDIR INSTALL_PATH=$(INSTALL_PATH)/$$SUBDIR install; \ |
| override define EMIT_TESTS |
| @for DIR in $(SUBDIRS); do \ |
| BUILD_TARGET=$(OUTPUT)/$$DIR; \ |
| mkdir $$BUILD_TARGET -p; \ |
| make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\ |