* glib/Makefile.am: Make it build with BSD/Make. Patch by
       Henry Precheur <henry@precheur.org>
diff --git a/ChangeLog b/ChangeLog
index 636f8ec..ec97b4c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-15  Albert Astals Cid <aacid@kde.org>
+
+	* glib/Makefile.am: Make it build with BSD/Make. Patch by
+	Henry Precheur <henry@precheur.org>
+
 2007-03-07  Carlos Garcia Campos <carlosgc@gnome.org>
 	reviewed by: Albert Astals Cid <aacid@kde.org>
 
diff --git a/glib/Makefile.am b/glib/Makefile.am
index 9c25e1f..17ee82f 100644
--- a/glib/Makefile.am
+++ b/glib/Makefile.am
@@ -35,7 +35,7 @@
 		--fprod "\n/* --- @filename@ --- */" \
 		--eprod "#define POPPLER_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
 		--eprod "GType @enum_name@_get_type (void) G_GNUC_CONST;\n" \
-		$(^F) ) > xgen-$(@F) \
+		$(poppler_glib_public_headers) ) > xgen-$(@F) \
 	&& ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
 	&& rm -f xgen-$(@F) \
 	&& echo timestamp > $(@F)
@@ -53,7 +53,7 @@
 		--vtail "  if (G_UNLIKELY (type == 0))\n" \
 		--vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
 		--vtail "  return type;\n}\n\n" \
-		$(^F) ) > xgen-$(@F) \
+		$(poppler_glib_public_headers) ) > xgen-$(@F) \
 	&& ( cmp -s xgen-$(@F) $(@F) || cp xgen-$(@F) $(@F) ) \
 	&& rm -f xgen-$(@F)