[empathy] Distribute conditionally built files



commit b28c2c17566ac07565b98e6720c7a6a5ec927ad1
Author: Pierre-Luc Beaudoin <pierre-luc beaudoin collabora co uk>
Date:   Mon Jun 8 15:10:57 2009 -0400

    Distribute conditionally built files
---
 libempathy-gtk/Makefile.am |   20 ++++++++++++--------
 src/Makefile.am            |   16 +++++++++++-----
 2 files changed, 23 insertions(+), 13 deletions(-)

diff --git a/libempathy-gtk/Makefile.am b/libempathy-gtk/Makefile.am
index 80c9a79..c3d085f 100644
--- a/libempathy-gtk/Makefile.am
+++ b/libempathy-gtk/Makefile.am
@@ -118,14 +118,6 @@ libempathy_gtk_headers =			\
 	empathy-theme-manager.h			\
 	empathy-ui-utils.h
 
-if HAVE_GEOCLUE
-libempathy_gtk_handwritten_source +=		\
-	empathy-location-manager.c
-
-libempathy_gtk_headers +=			\
-	empathy-location-manager.h
-endif
-
 check_c_sources = \
     $(libempathy_gtk_handwritten_source) \
     $(libempathy_gtk_headers)
@@ -218,6 +210,18 @@ pkgconfig_DATA = libempathy-gtk.pc
 EXTRA_DIST =			\
 	$(ui_DATA)
 
+if HAVE_GEOCLUE
+libempathy_gtk_handwritten_source +=		\
+	empathy-location-manager.c
+
+libempathy_gtk_headers +=			\
+	empathy-location-manager.h
+else
+EXTRA_DIST +=					\
+	empathy-location-manager.c		\
+	empathy-location-manager.h
+endif
+
 CLEANFILES =				\
 	$(BUILT_SOURCES)		\
 	stamp-empathy-gtk-enum-types.h
diff --git a/src/Makefile.am b/src/Makefile.am
index db21179..8102666 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -75,12 +75,22 @@ ui_DATA = 					\
 	empathy-preferences.ui			\
 	empathy-status-icon.ui
 
+EXTRA_DIST =			\
+	$(autostart_DATA)	\
+	$(ui_DATA)
+
 if HAVE_LIBCHAMPLAIN
 empathy_SOURCES += 				\
-	empathy-map-view.c empathy-map-view.h
+	empathy-map-view.c			\
+	empathy-map-view.h
 
 ui_DATA += 					\
 	empathy-map-view.ui
+else
+EXTRA_DIST +=					\
+	empathy-map-view.c			\
+	empathy-map-view.h			\
+	empathy-map-view.ui
 endif
 
 dist_man_MANS =			\
@@ -104,9 +114,5 @@ dist_man_MANS =			\
 	--vtail "      { 0, NULL, NULL }\n    };\n    etype = g_ type@_register_static (\"@EnumName \", values);\n  }\n  return etype;\n}\n" \
 	$< > $@
 
-EXTRA_DIST =			\
-	$(autostart_DATA)	\
-	$(ui_DATA)
-
 CLEANFILES = $(BUILT_SOURCES)
 



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