[PATCH 08/18] modetest: move sources lists to makefiles.sources

Emil Velikov emil.l.velikov at gmail.com
Sun Sep 7 14:30:03 PDT 2014


Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 tests/modetest/Makefile.am      | 7 +++----
 tests/modetest/Makefile.sources | 6 ++++++
 2 files changed, 9 insertions(+), 4 deletions(-)
 create mode 100644 tests/modetest/Makefile.sources

diff --git a/tests/modetest/Makefile.am b/tests/modetest/Makefile.am
index fd6ebb2..d551fe4 100644
--- a/tests/modetest/Makefile.am
+++ b/tests/modetest/Makefile.am
@@ -1,3 +1,5 @@
+include Makefile.sources
+
 AM_CFLAGS = $(filter-out -Wpointer-arith, $(WARN_CFLAGS))
 
 AM_CFLAGS += \
@@ -13,10 +15,7 @@ noinst_PROGRAMS = \
 	modetest
 endif
 
-modetest_SOURCES = \
-	buffers.c buffers.h \
-	cursor.c cursor.h \
-	modetest.c
+modetest_SOURCES = $(MODETEST_FILES)
 
 modetest_LDADD = \
 	$(top_builddir)/libdrm.la \
diff --git a/tests/modetest/Makefile.sources b/tests/modetest/Makefile.sources
new file mode 100644
index 0000000..399af0d
--- /dev/null
+++ b/tests/modetest/Makefile.sources
@@ -0,0 +1,6 @@
+MODETEST_FILES := \
+	buffers.c \
+	buffers.h \
+	cursor.c \
+	cursor.h \
+	modetest.c
-- 
2.0.2



More information about the dri-devel mailing list