build: Move logic to tests/Makefile.am and away from Makefile.sources

Makefile.sources is just a listing with all the sources, and the logic
to use these sources goes into either Makefile.am (automake) or
Android.mk (make).

Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Oscar Mateo 2013-11-12 11:50:37 +00:00 committed by Daniel Vetter
parent d80c6bdedb
commit 4c7d5a52a7
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,9 @@
include Makefile.sources
if HAVE_NOUVEAU
TESTS_progs_M += $(NOUVEAU_TESTS_M)
endif
if BUILD_TESTS
list-single-tests:
@echo TESTLIST

View File

@ -7,13 +7,11 @@ noinst_PROGRAMS = \
$(TESTS_testsuite) \
$(NULL)
if HAVE_NOUVEAU
NOUVEAU_TESTS_M = \
prime_nv_api \
prime_nv_pcopy \
prime_nv_test \
$(NULL)
endif
TESTS_progs_M = \
drv_suspend \
@ -55,7 +53,6 @@ TESTS_progs_M = \
kms_pipe_crc_basic \
kms_render \
kms_setmode \
$(NOUVEAU_TESTS_M) \
pm_pc8 \
prime_self_import \
template \