[Spice-devel] [PATCH 1/4] build: slightly better parallel build

Marc-André Lureau marcandre.lureau at gmail.com
Thu Sep 22 16:22:41 PDT 2011


Following a discussion on the ML with Hans, I proposed
this build change that make parallel build more robust.

(Hans solution is not yet ready, and is more complicated)
---
 gtk/Makefile.am |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index c21af16..31e2a77 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -379,9 +379,7 @@ spicy_stats_LDADD =				\
 	libspice-client-glib-2.0.la		\
 	$(NULL)
 
-
-
-spice-channel.c: spice-marshal.h
+BUILT_SOURCES = spice-glib-enums.h spice-widget-enums.h spice-marshal.h
 
 spice-marshal.c: spice-marshal.txt
 	$(AM_V_GEN)echo "#include \"spice-marshal.h\"" > $@ && \
@@ -418,12 +416,6 @@ spice-glib-enums.h: spice-channel.h channel-inputs.h spice-session.h
 			--eprod "GType @enum_name at _get_type (void);\n" \
 		$^ >  $@
 
-if HAVE_GTK_2
-$(libspice_client_gtk_2_0_la_SOURCES): spice-glib-enums.h spice-widget-enums.h
-else
-$(libspice_client_gtk_3_0_la_SOURCES): spice-glib-enums.h spice-widget-enums.h
-endif
-
 spice-widget-enums.c: spice-widget.h
 	$(AM_V_GEN)glib-mkenums --fhead "#include <glib-object.h>\n" \
 			--fhead "#include \"spice-widget-enums.h\"\n\n" \
-- 
1.7.6.2



More information about the Spice-devel mailing list