[gnome-panel] build: Fix srcdir != builddir



commit c13716f076ecf5357b7fc22cf7e68f1bbf2da6d9
Author: Colin Walters <walters verbum org>
Date:   Thu Sep 1 17:14:28 2011 -0400

    build: Fix srcdir != builddir
    
    We need to explicitly look in the srcdir for enums.

 gnome-panel/libpanel-util/Makefile.am |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-panel/libpanel-util/Makefile.am b/gnome-panel/libpanel-util/Makefile.am
index 6f52c49..7d14eea 100644
--- a/gnome-panel/libpanel-util/Makefile.am
+++ b/gnome-panel/libpanel-util/Makefile.am
@@ -31,7 +31,7 @@ panel-util-types.c: $(panel_util_enum_headers)
 			--vtail "  if (!type)\n" \
 			--vtail "    type = g_enum_register_static (\"@EnumName \", _ enum_name@_values);\n\n" \
 			--vtail "  return type;\n}\n\n" \
-		$(panel_util_enum_headers) > $@
+		$(addprefix $(srcdir)/,$(panel_util_enum_headers)) > $  tmp && mv $  tmp $@
 
 panel-util-types.h: $(panel_util_enum_headers)
 	$(AM_V_GEN)glib-mkenums \
@@ -43,7 +43,7 @@ panel-util-types.h: $(panel_util_enum_headers)
 			--fprod "\n/* --- @filename@ --- */" \
 			--eprod "#define PANEL_TYPE_ ENUMSHORT@ @enum_name _get_type()\n" \
 			--eprod "GType @enum_name _get_type (void);\n" \
-		$(panel_util_enum_headers) > $@
+		$(addprefix $(srcdir)/,$(panel_util_enum_headers)) > $  tmp && mv $  tmp $@
 
 libpanel_util_la_SOURCES =		\
 	$(BUILT_SOURCES)		\



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]