[Spice-devel] [PATCH spice-common 1/2] Fix make distcheck

Marc-André Lureau marcandre.lureau at gmail.com
Mon Nov 23 23:43:53 PST 2015


Fix make distcheck both with standalone spice-common and with spice
server.

Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
---
 Makefile.am              | 2 +-
 tests/Makefile.am        | 3 ++-
 tests/test-marshallers.c | 4 ++--
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 4b138fe..4d9cf59 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
 NULL =
 ACLOCAL_AMFLAGS = -I m4
 
-SUBDIRS = common
+SUBDIRS = common tests
 
 MAINTAINERCLEANFILES =						\
 	$(srcdir)/INSTALL					\
diff --git a/tests/Makefile.am b/tests/Makefile.am
index cde46e4..518e63f 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -9,7 +9,7 @@ test_marshallers_SOURCES =		\
 	test-marshallers.h		\
 	$(NULL)
 test_marshallers_CFLAGS =		\
-	-I$(top_srcdir)/common		\
+	-I$(top_srcdir)			\
 	$(GLIB2_CFLAGS)			\
 	$(PROTOCOL_CFLAGS)		\
 	$(NULL)
@@ -45,6 +45,7 @@ generated_test_marshallers.h: $(srcdir)/test-marshallers.proto $(MARSHALLERS_DEP
 
 EXTRA_DIST =				\
 	$(TEST_MARSHALLERS)		\
+	test-marshallers.proto		\
 	$(NULL)
 
 -include $(top_srcdir)/git.mk
diff --git a/tests/test-marshallers.c b/tests/test-marshallers.c
index e3e4d09..d2c80e5 100644
--- a/tests/test-marshallers.c
+++ b/tests/test-marshallers.c
@@ -1,8 +1,8 @@
 #include <glib.h>
 #include <string.h>
-#include <marshaller.h>
 
-#include <generated_test_marshallers.h>
+#include "common/marshaller.h"
+#include "generated_test_marshallers.h"
 
 static uint8_t expected_data[] = { 0x02, 0x00, 0x00, 0x00, /* data_size */
                                    0x08, 0x00, 0x00, 0x00, /* data offset */
-- 
2.5.0



More information about the Spice-devel mailing list