Linux 4.19.133
[linux/fpc-iii.git] / tools / testing / selftests / android / Makefile
blob72c25a3cb65892c4d2ae0cd13add3c3cf2423b50
1 SUBDIRS := ion
3 TEST_PROGS := run.sh
5 .PHONY: all clean
7 include ../lib.mk
9 all:
10 @for DIR in $(SUBDIRS); do \
11 BUILD_TARGET=$(OUTPUT)/$$DIR; \
12 mkdir $$BUILD_TARGET -p; \
13 make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
14 #SUBDIR test prog name should be in the form: SUBDIR_test.sh \
15 TEST=$$DIR"_test.sh"; \
16 if [ -e $$DIR/$$TEST ]; then \
17 rsync -a $$DIR/$$TEST $$BUILD_TARGET/; \
18 fi \
19 done
21 override define INSTALL_RULE
22 mkdir -p $(INSTALL_PATH)
23 install -t $(INSTALL_PATH) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES)
25 @for SUBDIR in $(SUBDIRS); do \
26 BUILD_TARGET=$(OUTPUT)/$$SUBDIR; \
27 mkdir $$BUILD_TARGET -p; \
28 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$SUBDIR INSTALL_PATH=$(INSTALL_PATH)/$$SUBDIR install; \
29 done;
30 endef
32 override define CLEAN
33 @for DIR in $(SUBDIRS); do \
34 BUILD_TARGET=$(OUTPUT)/$$DIR; \
35 mkdir $$BUILD_TARGET -p; \
36 make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
37 done
38 endef