diff --git a/libwnck/Makefile.am b/libwnck/Makefile.am
index ca76db3..840b032 100644
--- a/libwnck/Makefile.am
+++ b/libwnck/Makefile.am
@@ -171,7 +171,8 @@ INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
 
 if HAVE_INTROSPECTION
-introspection_sources = $(wnck_sources) $(libwnckinclude_HEADERS)
+introspection_sources = $(wnck_sources) $(wnck_headers)
+introspection_built_sources = $(wnck_built_installed_headers)
 
 Wnck-1.0.gir: libwnck-1.la Makefile
 Wnck_1_0_gir_INCLUDES = GObject-2.0 Gtk-2.0
@@ -181,7 +182,9 @@ Wnck_1_0_gir_CFLAGS =			\
 	-DWNCK_I_KNOW_THIS_IS_UNSTABLE	\
 	-DSN_API_NOT_YET_FROZEN=1
 Wnck_1_0_gir_LIBS = libwnck-1.la
-Wnck_1_0_gir_FILES = $(addprefix $(srcdir)/,$(introspection_sources))
+Wnck_1_0_gir_FILES = \
+	$(addprefix $(srcdir)/,$(introspection_sources))	\
+	$(introspection_built_sources)
 INTROSPECTION_GIRS += Wnck-1.0.gir
 
 girdir = $(datadir)/gir-1.0
