From a71f51dece83b3da7e8fe284f4383592fba4d184 Mon Sep 17 00:00:00 2001 From: Cor-Paul Bezemer Date: Fri, 10 Jul 2015 17:50:00 +0000 Subject: [PATCH] build: Add gdbus-codegen files as dependencies in generated code rule So gdbus-daemon-generated.[ch] get regenerated appropriately if any of them change. https://bugzilla.gnome.org/show_bug.cgi?id=752239 --- gio/Makefile.am | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gio/Makefile.am b/gio/Makefile.am index b2db99581..d2711e102 100644 --- a/gio/Makefile.am +++ b/gio/Makefile.am @@ -92,7 +92,18 @@ gdbus_sources = \ # These are not built into the library yet EXTRA_DIST += gdbusdaemon.c gdbusdaemon.h dbus-daemon.xml -gdbus-daemon-generated.h gdbus-daemon-generated.c: $(srcdir)/dbus-daemon.xml $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in +GDBUS_PYTHON_DEPS = \ + $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in \ + $(srcdir)/gdbus-2.0/codegen/codegen_main.py \ + $(srcdir)/gdbus-2.0/codegen/parser.py \ + $(srcdir)/gdbus-2.0/codegen/codegen_docbook.py \ + $(srcdir)/gdbus-2.0/codegen/codegen.py \ + $(srcdir)/gdbus-2.0/codegen/__init__.py \ + $(srcdir)/gdbus-2.0/codegen/dbustypes.py \ + $(srcdir)/gdbus-2.0/codegen/config.py \ + $(srcdir)/gdbus-2.0/codegen/utils.py + +gdbus-daemon-generated.h gdbus-daemon-generated.c: $(srcdir)/dbus-daemon.xml $(GDBUS_PYTHON_DEPS) $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \ UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \ $(PYTHON) $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in \