+
+BUILT_SOURCES += giotypefuncs.c
+
+giotypefuncs.c: Makefile
+ $(AM_V_GEN) echo '#include <gio/gio.h>' > xgen-giosrc.c && \
+ echo "G_GNUC_BEGIN_IGNORE_DEPRECATIONS" > xgen-gio && \
+ ${CPP} $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-giosrc.c | \
+ $(GREP) -o '\bg_.*_get_type\b' | \
+ $(GREP) -v 'g_io_extension_get_type\|g_variant_get_type' | \
+ sort | uniq | \
+ $(SED) -e 's/^/*tp++ = /' -e 's/$$/ ();/' >> xgen-gio && \
+ cp xgen-gio $@ # && rm -f xgen-gio xgen-giosrc.c
+
+CLEANFILES += xgen-giosrc.c xgen-gio giotypefuncs.c
+
+if ENABLE_INSTALLED_TESTS
+install-data-hook:
+ $(AM_V_at) chmod a+x $(DESTDIR)$(installed_testdir)/x-content/win32-software/autorun.exe
+endif