--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,12 @@
 libexec_PROGRAMS=			\
-	gnome-user-share-webdav		\
+	gnome-user-share-webdav
+
+if USE_BLUETOOTH
+libexec_PROGRAMS +=			\
 	gnome-user-share-obexpush
+else
+EXTRA_DIST = obexpush.c obexpush.h
+endif
 
 noinst_LTLIBRARIES = libuser-share-common.la
 libuser_share_common_la_SOURCES = user_share-common.c user_share-common.h
@@ -36,16 +42,12 @@
 	$(SELINUX_LIBS)			\
 	$(X_LIBS) $(X_PRE_LIBS) -lX11 $(X_EXTRA_LIBS)
 
-if USE_BLUETOOTH
 gnome_user_share_obexpush_SOURCES =	\
 	user_share-obexpush.c		\
 	user_share-private.h		\
 	user_share-private.c		\
 	obexpush.c			\
 	obexpush.h
-else
-EXTRA_DIST = obexpush.c obexpush.h
-endif
 
 gnome_user_share_obexpush_LDADD =	\
 	libuser-share-common.la		\
