build: Move logic to tests/Makefile.am and away from Makefile.sources
authorOscar Mateo <oscar.mateo@intel.com>
Tue, 12 Nov 2013 11:50:37 +0000 (11:50 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 12 Nov 2013 11:01:09 +0000 (12:01 +0100)
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>
tests/Makefile.am
tests/Makefile.sources

index 9e1b13f..8e293f7 100644 (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
index 311f4b6..5f4d282 100644 (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 \