Only build tests in make check

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'.
main
Jonathan Callen 2010-05-12 13:55:34 -04:00 committed by Kristian Høgsberg
parent 62731b8411
commit 52a3e9df62
1 changed files with 3 additions and 5 deletions

View 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)