makefiles: Generate the dependencies line to avoid some code duplication.
diff --git a/configure.ac b/configure.ac
index 14ef9b8..229cecd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1457,6 +1457,12 @@
 
 dnl **** Generate output files ****
 
+AC_SUBST(DEPENDENCIES,"### Dependencies:
+
+\$(ALL_OBJS): \$(IDL_SRCS:.idl=.h)
+\$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
+\$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)")
+
 AH_TOP([#define __WINE_CONFIG_H])
 
 WINE_CONFIG_EXTRA_DIR(dlls/gdi/enhmfdrv)