diff mbox

[libdrm,07/10] tests/drmdevices: install alongside other utilities

Message ID 20180625173626.8046-7-emil.l.velikov@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Emil Velikov June 25, 2018, 5:36 p.m. UTC
From: Emil Velikov <emil.velikov@collabora.com>

It's mildly useful program, to ship it when the user wants the "tests"
installed. Obviously the "tests" in the name is a misnomer.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
---
 tests/Makefile.am | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

Comments

Robert Foss June 28, 2018, 4:09 p.m. UTC | #1
Feel free to add my r-b to this patch.

On 2018-06-25 19:36, Emil Velikov wrote:
> From: Emil Velikov <emil.velikov@collabora.com>
> 
> It's mildly useful program, to ship it when the user wants the "tests"
> installed. Obviously the "tests" in the name is a misnomer.
> 
> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
> ---
>   tests/Makefile.am | 9 +++++++--
>   1 file changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/Makefile.am b/tests/Makefile.am
> index 0355a925..b72c24f9 100644
> --- a/tests/Makefile.am
> +++ b/tests/Makefile.am
> @@ -43,5 +43,10 @@ TESTS = \
>   	random
>   
>   check_PROGRAMS = \
> -	$(TESTS) \
> -	drmdevice
> +	$(TESTS)
> +
> +if HAVE_INSTALL_TESTS
> +bin_PROGRAMS = drmdevice
> +else
> +check_PROGRAMS += drmdevice
> +endif
>
diff mbox

Patch

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0355a925..b72c24f9 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -43,5 +43,10 @@  TESTS = \
 	random
 
 check_PROGRAMS = \
-	$(TESTS) \
-	drmdevice
+	$(TESTS)
+
+if HAVE_INSTALL_TESTS
+bin_PROGRAMS = drmdevice
+else
+check_PROGRAMS += drmdevice
+endif