1SUBDIRS := functional 2 3TEST_PROGS := run.sh 4 5.PHONY: all clean 6all: 7 for DIR in $(SUBDIRS); do $(MAKE) -C $$DIR $@ ; done 8 9include ../lib.mk 10 11override define RUN_TESTS 12 ./run.sh 13endef 14 15override define INSTALL_RULE 16 mkdir -p $(INSTALL_PATH) 17 install -t $(INSTALL_PATH) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) 18 19 @for SUBDIR in $(SUBDIRS); do \ 20 $(MAKE) -C $$SUBDIR INSTALL_PATH=$(INSTALL_PATH)/$$SUBDIR install; \ 21 done; 22endef 23 24override define EMIT_TESTS 25 echo "./run.sh" 26endef 27 28clean: 29 for DIR in $(SUBDIRS); do $(MAKE) -C $$DIR $@ ; done 30