staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / tools / testing / selftests / android / Makefile
blob7c462714b41880c5ee1b7b6ecc8044bdf4e8a492
1 # SPDX-License-Identifier: GPL-2.0-only
2 SUBDIRS := ion
4 TEST_PROGS := run.sh
6 .PHONY: all clean
8 include ../lib.mk
10 all:
11 @for DIR in $(SUBDIRS); do \
12 BUILD_TARGET=$(OUTPUT)/$$DIR; \
13 mkdir $$BUILD_TARGET -p; \
14 make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
15 #SUBDIR test prog name should be in the form: SUBDIR_test.sh \
16 TEST=$$DIR"_test.sh"; \
17 if [ -e $$DIR/$$TEST ]; then \
18 rsync -a $$DIR/$$TEST $$BUILD_TARGET/; \
19 fi \
20 done
22 override define INSTALL_RULE
23 mkdir -p $(INSTALL_PATH)
24 install -t $(INSTALL_PATH) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES)
26 @for SUBDIR in $(SUBDIRS); do \
27 BUILD_TARGET=$(OUTPUT)/$$SUBDIR; \
28 mkdir $$BUILD_TARGET -p; \
29 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$SUBDIR INSTALL_PATH=$(INSTALL_PATH)/$$SUBDIR install; \
30 done;
31 endef
33 override define CLEAN
34 @for DIR in $(SUBDIRS); do \
35 BUILD_TARGET=$(OUTPUT)/$$DIR; \
36 mkdir $$BUILD_TARGET -p; \
37 make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
38 done
39 endef