Nuke generated D-Bus code from distribution tarballs
authorDavid Zeuthen <davidz@redhat.com>
Tue, 15 Mar 2011 14:34:24 +0000 (10:34 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 15 Mar 2011 14:34:24 +0000 (10:34 -0400)
This avoids a nasty bug when using an older version of the dbus-glib
library than the version that was used to generate the code. Credit
goes to Tomáš Trnka <tomastrnka@gmx.com> for figuring this out in RH
bug #673544 comment 15. See

 https://bugzilla.redhat.com/show_bug.cgi?id=673544

for more details

Signed-off-by: David Zeuthen <davidz@redhat.com>
Makefile.am

index 588f05d..0c9037f 100644 (file)
@@ -29,5 +29,8 @@ DISTCHECK_CONFIGURE_FLAGS=--disable-man-pages --disable-gtk-doc
 clean-local :
        rm -f *~
 
+dist-hook:
+       -rm $(distdir)/src/*-glue.h $(distdir)/tools/*-glue.h
+
 TESTS_ENVIRONMENT = sudo
 TESTS = tests/run