diff --git a/gobject/tests/Makefile.am b/gobject/tests/Makefile.am
index 534ca52..189153e 100644
--- a/gobject/tests/Makefile.am
+++ b/gobject/tests/Makefile.am
@@ -45,7 +45,7 @@ else
   glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
 endif
 
-marshalers.h: Makefile.am marshalers.list
+marshalers.h: Makefile.am marshalers.list $(glib_genmarshal)
 	$(AM_V_GEN) $(glib_genmarshal) --prefix=test $(srcdir)/marshalers.list --header --valist-marshallers > marshalers.h
 
 marshalers.c: Makefile.am marshalers.h marshalers.list
