diff --git a/pango/Makefile.am b/pango/Makefile.am
index bce92c4..c6d596f 100644
--- a/pango/Makefile.am
+++ b/pango/Makefile.am
@@ -162,8 +162,8 @@ pango-features.h:
 
 Pango-1.0.gir: $(libpango_1_0_la_SOURCES)
 Pango-1.0.gir: $(pango_headers)
-Pango-1.0.gir: libpango-1.0.la
-Pango-1.0.gir: $(G_IR_SCANNER) Makefile
+Pango-1.0.gir: | libpango-1.0.la
+Pango-1.0.gir: | $(G_IR_SCANNER) Makefile
 	$(AM_V_GEN) $(G_IR_SCANNER) -v --namespace Pango --nsversion=1.0 \
 	    --add-include-path=$(srcdir) --add-include-path=. \
             --include=GObject-2.0 \
@@ -174,10 +174,11 @@ Pango-1.0.gir: $(G_IR_SCANNER) Makefile
             --pkg gobject-2.0 \
             --pkg cairo \
             --pkg freetype2 \
+	    -I$(srcdir) \
 	    -I$(top_srcdir) \
+	    -I$(top_builddir) \
 	    $(PANGO_CFLAGS) \
-            $(libpango_1_0_la_SOURCES) \
-	    $(pango_headers) \
+            $^ \
  	    pango-enum-types.h
 
 # ------------------- libpangox -------------------
@@ -276,9 +277,10 @@ pangoft2-win32-res.o: pangoft2.rc
 	$(AM_V_GEN) $(WINDRES) $< $@
 
 PangoFT2-1.0.gir: $(pangoft2_headers)
-PangoFT2-1.0.gir: $(libpangoft2_1_0_la_SOURCES)
-PangoFT2-1.0.gir: libpangoft2-1.0.la
-PangoFT2-1.0.gir: Pango-1.0.gir $(G_IR_SCANNER) Makefile
+PangoFT2-1.0.gir: $(pangoft2_public_sources)
+PangoFT2-1.0.gir: | $(libpangoft2_1_0_la_SOURCES)
+PangoFT2-1.0.gir: | libpangoft2-1.0.la
+PangoFT2-1.0.gir: | Pango-1.0.gir $(G_IR_SCANNER) Makefile
 	$(AM_V_GEN) $(G_IR_SCANNER) -v --namespace PangoFT2 --nsversion=1.0 \
 	    --add-include-path=$(srcdir) --add-include-path=. \
             --include=GObject-2.0 \
@@ -292,8 +294,7 @@ PangoFT2-1.0.gir: Pango-1.0.gir $(G_IR_SCANNER) Makefile
             --pkg freetype2 \
             --pkg pangoft2 \
 	    -I$(top_srcdir) \
-            $(pangoft2_headers) \
-            $(pangoft2_public_sources)
+            $^
 
 # ------------------- libpangoxft -------------------
 
@@ -334,8 +335,8 @@ libpangoxft_1_0_la_SOURCES =   	\
 
 PangoXft-1.0.gir: $(pangoxft_headers)
 PangoXft-1.0.gir: $(libpangoxft_1_0_la_SOURCES)
-PangoXft-1.0.gir: libpangoxft-1.0.la
-PangoXft-1.0.gir: Pango-1.0.gir PangoFT2-1.0.gir $(G_IR_SCANNER) Makefile
+PangoXft-1.0.gir: | libpangoxft-1.0.la
+PangoXft-1.0.gir: | Pango-1.0.gir PangoFT2-1.0.gir $(G_IR_SCANNER) Makefile
 	$(AM_V_GEN) $(G_IR_SCANNER) -v --namespace PangoXft --nsversion=1.0 \
 	    --add-include-path=$(srcdir) --add-include-path=. \
             --include=GObject-2.0 \
@@ -349,8 +350,7 @@ PangoXft-1.0.gir: Pango-1.0.gir PangoFT2-1.0.gir $(G_IR_SCANNER) Makefile
             --pkg freetype2 \
 	    -I$(top_srcdir) \
 	    $(PANGO_CFLAGS) \
-            $(pangoxft_headers) \
-            $(libpangoxft_1_0_la_SOURCES)
+            $^
 
 # ------------------- libpangocairo -------------------
 
@@ -423,8 +423,8 @@ endif
 
 PangoCairo-1.0.gir: $(libpangocairo_1_0_la_SOURCES)
 PangoCairo-1.0.gir: $(pangocairo_headers)
-PangoCairo-1.0.gir: libpangocairo-1.0.la
-PangoCairo-1.0.gir: Pango-1.0.gir $(PANGOCAIRO_FONT_BACKEND_GI_MODULE).gir $(G_IR_SCANNER) Makefile
+PangoCairo-1.0.gir: | libpangocairo-1.0.la
+PangoCairo-1.0.gir: | Pango-1.0.gir $(PANGOCAIRO_FONT_BACKEND_GI_MODULE).gir $(G_IR_SCANNER) Makefile
 	$(AM_V_GEN) $(G_IR_SCANNER) -v --namespace PangoCairo --nsversion=1.0 \
 	    --add-include-path=$(srcdir) --add-include-path=. \
             --include=GObject-2.0 \
@@ -439,8 +439,7 @@ PangoCairo-1.0.gir: Pango-1.0.gir $(PANGOCAIRO_FONT_BACKEND_GI_MODULE).gir $(G_I
             --pkg cairo \
 	    -I$(top_srcdir) \
 	    $(PANGO_CFLAGS) \
-            $(libpangocairo_1_0_la_SOURCES) \
-	    $(pangocairo_headers)
+	    $^
 
 # ------------------- libpangowin32 -------------------
 
