From 62d8866021f04bc8afc8e63d366c71d11c817bc9 Mon Sep 17 00:00:00 2001 From: Benjamin Gaignard Date: Wed, 30 Jan 2013 14:34:00 +0100 Subject: tests: allow tests programs to be installed Install test programs is useful in cross compilation case. By default the behavior is the same and test programs aren't installed in $bindir. If --enable-install-test-programs is set then test programs are installed in $bindir. Signed-off-by: Benjamin Gaignard Signed-off-by: Rob Clark --- tests/modetest/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/modetest/Makefile.am') diff --git a/tests/modetest/Makefile.am b/tests/modetest/Makefile.am index 065ae132..410c6326 100644 --- a/tests/modetest/Makefile.am +++ b/tests/modetest/Makefile.am @@ -3,8 +3,13 @@ AM_CFLAGS = \ -I$(top_srcdir)/libkms/ \ -I$(top_srcdir) +if HAVE_INSTALL_TESTS +bin_PROGRAMS = \ + modetest +else noinst_PROGRAMS = \ modetest +endif modetest_SOURCES = \ buffers.c modetest.c buffers.h -- cgit v1.2.3