1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 SUBDIRS := functional 2 SUBDIRS := functional 3 3 4 TEST_PROGS := run.sh 4 TEST_PROGS := run.sh 5 5 6 include ../lib.mk 6 include ../lib.mk 7 7 8 all: 8 all: 9 @for DIR in $(SUBDIRS); do 9 @for DIR in $(SUBDIRS); do \ 10 BUILD_TARGET=$(OUTPUT)/$$DIR; 10 BUILD_TARGET=$(OUTPUT)/$$DIR; \ 11 mkdir $$BUILD_TARGET -p; 11 mkdir $$BUILD_TARGET -p; \ 12 $(MAKE) OUTPUT=$$BUILD_TARGET 12 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$DIR $@;\ 13 if [ -e $$DIR/$(TEST_PROGS) ]; 13 if [ -e $$DIR/$(TEST_PROGS) ]; then \ 14 rsync -a $$DIR/$(TEST_ 14 rsync -a $$DIR/$(TEST_PROGS) $$BUILD_TARGET/; \ 15 fi \ 15 fi \ 16 done 16 done 17 17 18 override define INSTALL_RULE 18 override define INSTALL_RULE 19 mkdir -p $(INSTALL_PATH) 19 mkdir -p $(INSTALL_PATH) 20 install -t $(INSTALL_PATH) $(TEST_PROG 20 install -t $(INSTALL_PATH) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) 21 21 22 @for SUBDIR in $(SUBDIRS); do \ 22 @for SUBDIR in $(SUBDIRS); do \ 23 BUILD_TARGET=$(OUTPUT)/$$SUBDI 23 BUILD_TARGET=$(OUTPUT)/$$SUBDIR; \ 24 mkdir $$BUILD_TARGET -p; 24 mkdir $$BUILD_TARGET -p; \ 25 $(MAKE) OUTPUT=$$BUILD_TARGET 25 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$SUBDIR INSTALL_PATH=$(INSTALL_PATH)/$$SUBDIR install; \ 26 done; 26 done; 27 endef 27 endef 28 28 29 override define CLEAN 29 override define CLEAN 30 @for DIR in $(SUBDIRS); do 30 @for DIR in $(SUBDIRS); do \ 31 BUILD_TARGET=$(OUTPUT)/$$DIR; 31 BUILD_TARGET=$(OUTPUT)/$$DIR; \ 32 mkdir $$BUILD_TARGET -p; 32 mkdir $$BUILD_TARGET -p; \ 33 $(MAKE) OUTPUT=$$BUILD_TARGET 33 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$DIR $@;\ 34 done 34 done 35 endef 35 endef
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.