drm/atomic-helper: document drm_atomic_helper_check() restrictions
[drm/drm-misc.git] / tools / testing / selftests / futex / Makefile
blob78ab2cd111f608aca6d35a80937bd72f3ce0c3d4
1 # SPDX-License-Identifier: GPL-2.0
2 SUBDIRS := functional
4 TEST_PROGS := run.sh
6 include ../lib.mk
8 all:
9 @for DIR in $(SUBDIRS); do \
10 BUILD_TARGET=$(OUTPUT)/$$DIR; \
11 mkdir $$BUILD_TARGET -p; \
12 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
13 if [ -e $$DIR/$(TEST_PROGS) ]; then \
14 rsync -a $$DIR/$(TEST_PROGS) $$BUILD_TARGET/; \
15 fi \
16 done
18 override define INSTALL_RULE
19 mkdir -p $(INSTALL_PATH)
20 install -t $(INSTALL_PATH) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES)
22 @for SUBDIR in $(SUBDIRS); do \
23 BUILD_TARGET=$(OUTPUT)/$$SUBDIR; \
24 mkdir $$BUILD_TARGET -p; \
25 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$SUBDIR INSTALL_PATH=$(INSTALL_PATH)/$$SUBDIR install; \
26 done;
27 endef
29 override define CLEAN
30 @for DIR in $(SUBDIRS); do \
31 BUILD_TARGET=$(OUTPUT)/$$DIR; \
32 mkdir $$BUILD_TARGET -p; \
33 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
34 done
35 endef