18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ciSUBDIRS := functional 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciTEST_PROGS := run.sh 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci.PHONY: all clean 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciinclude ../lib.mk 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciall: 118c2ecf20Sopenharmony_ci @for DIR in $(SUBDIRS); do \ 128c2ecf20Sopenharmony_ci BUILD_TARGET=$(OUTPUT)/$$DIR; \ 138c2ecf20Sopenharmony_ci mkdir $$BUILD_TARGET -p; \ 148c2ecf20Sopenharmony_ci $(MAKE) OUTPUT=$$BUILD_TARGET -C $$DIR $@;\ 158c2ecf20Sopenharmony_ci if [ -e $$DIR/$(TEST_PROGS) ]; then \ 168c2ecf20Sopenharmony_ci rsync -a $$DIR/$(TEST_PROGS) $$BUILD_TARGET/; \ 178c2ecf20Sopenharmony_ci fi \ 188c2ecf20Sopenharmony_ci done 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_cioverride define INSTALL_RULE 218c2ecf20Sopenharmony_ci mkdir -p $(INSTALL_PATH) 228c2ecf20Sopenharmony_ci install -t $(INSTALL_PATH) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci @for SUBDIR in $(SUBDIRS); do \ 258c2ecf20Sopenharmony_ci BUILD_TARGET=$(OUTPUT)/$$SUBDIR; \ 268c2ecf20Sopenharmony_ci mkdir $$BUILD_TARGET -p; \ 278c2ecf20Sopenharmony_ci $(MAKE) OUTPUT=$$BUILD_TARGET -C $$SUBDIR INSTALL_PATH=$(INSTALL_PATH)/$$SUBDIR install; \ 288c2ecf20Sopenharmony_ci done; 298c2ecf20Sopenharmony_ciendef 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_cioverride define CLEAN 328c2ecf20Sopenharmony_ci @for DIR in $(SUBDIRS); do \ 338c2ecf20Sopenharmony_ci BUILD_TARGET=$(OUTPUT)/$$DIR; \ 348c2ecf20Sopenharmony_ci mkdir $$BUILD_TARGET -p; \ 358c2ecf20Sopenharmony_ci $(MAKE) OUTPUT=$$BUILD_TARGET -C $$DIR $@;\ 368c2ecf20Sopenharmony_ci done 378c2ecf20Sopenharmony_ciendef 38