diff src/audacious/Makefile @ 2708:b66e6a928a6e trunk

[svn] - add dependency for dbus bindings.
author yaz
date Tue, 08 May 2007 23:24:26 -0700
parents 958d12f78138
children 47ea8eedd428
line wrap: on
line diff
--- a/src/audacious/Makefile	Tue May 08 12:30:53 2007 -0700
+++ b/src/audacious/Makefile	Tue May 08 23:24:26 2007 -0700
@@ -112,6 +112,12 @@
 	visualization.c \
 	xconvert.c
 
+DBUS_BINDINGS = \
+	objects.xml \
+	mpris_root.xml \
+	mpris_tracklist.xml \
+	mpris_player.xml
+
 OBJECTS = ${SOURCES:.c=.o}
 
 LIBDEP = widgets/libwidgets.a ../libguess/libguess.a ../librcd/librcd.a
@@ -119,11 +125,13 @@
 desktop_DATA = audacious.desktop
 desktopdir = $(datadir)/applications
 
+dbus.o: dbus-bindings.h
+
 audacious: $(OBJECTS) $(LIBDEP)
 	$(CXX) $(LDFLAGS) $(OBJECTS) $(LDADD) -o $@ 
 	@printf "%10s     %-20s\n" LINK $@
 
-dbus-bindings.h:
+dbus-bindings.h: $(DBUS_BINDINGS)
 	$(DBUS_BINDING_TOOL) --mode=glib-server --prefix=audacious_remote objects.xml > $@
 	# $(DBUS_BINDING_TOOL) --mode=glib-server --prefix=mpris_root mpris_root.xml >> $@
 	# $(DBUS_BINDING_TOOL) --mode=glib-server --prefix=mpris_tracklist mpris_tracklist.xml >> $@