From 84464a3e9b5f16ab805ee3166901dd264a3898a7 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 19 Apr 2012 12:12:13 +0300 Subject: [PATCH] tests: put common test source files in a variable Makes all test targets have the same common make dependencies. Signed-off-by: Pekka Paalanen --- tests/Makefile.am | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index cc4b9cc..e14f757 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -9,12 +9,14 @@ check_PROGRAMS = \ event-loop-test \ client-test -map_test_SOURCES = map-test.c test-runner.c test-runner.h -array_test_SOURCES = array-test.c test-runner.c -list_test_SOURCES = list-test.c test-runner.c -connection_test_SOURCES = connection-test.c test-runner.c -event_loop_test_SOURCES = event-loop-test.c test-runner.c -client_test_SOURCES = client-test.c test-runner.c +test_runner_src = test-runner.c test-runner.h + +map_test_SOURCES = map-test.c $(test_runner_src) +array_test_SOURCES = array-test.c $(test_runner_src) +list_test_SOURCES = list-test.c $(test_runner_src) +connection_test_SOURCES = connection-test.c $(test_runner_src) +event_loop_test_SOURCES = event-loop-test.c $(test_runner_src) +client_test_SOURCES = client-test.c $(test_runner_src) AM_CFLAGS = $(GCC_CFLAGS) LDADD = $(top_builddir)/src/libwayland-util.la \ -- 2.7.4