Only build tests in make check
authorJonathan Callen <abcd@gentoo.org>
Wed, 12 May 2010 17:55:34 +0000 (13:55 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 12 May 2010 17:55:54 +0000 (13:55 -0400)
Currently, all the tests for libdrm are built during 'make all', even
if you do not wish to run tests.  Attached is a patch, based on
version 2.4.15, to make the tests build in 'make check'.

tests/Makefile.am

index 5d240a0..ebf4853 100644 (file)
@@ -6,7 +6,7 @@ AM_CPPFLAGS = \
 
 LDADD = $(top_builddir)/libdrm.la
 
-noinst_PROGRAMS = \
+check_PROGRAMS = \
        dristat \
        drmstat
 
@@ -21,7 +21,7 @@ endif
 
 if HAVE_LIBUDEV
 
-EXTRA_LTLIBRARIES = libdrmtest.la
+check_LTLIBRARIES = libdrmtest.la
 
 libdrmtest_la_SOURCES = \
        drmtest.c \
@@ -63,8 +63,6 @@ TESTS +=                                      \
        $(NULL)
 endif
 
-EXTRA_PROGRAMS = $(TESTS)
+check_PROGRAMS += $(TESTS)
 
 endif
-
-CLEANFILES = $(EXTRA_PROGRAMS) $(EXTRA_LTLIBRARIES)