Force all the tools to be rebuilt before make depend, otherwise make
will try to do that from the include directory.
diff --git a/Make.rules.in b/Make.rules.in
index 6e343b3..0657baa 100644
--- a/Make.rules.in
+++ b/Make.rules.in
@@ -169,11 +169,6 @@
$(MODULE).dbg.c: $(C_SRCS) $(C_SRCS16) $(WINEBUILD)
$(WINEBUILD) $(DEFS) -o $@ --debug -C$(SRCDIR) $(C_SRCS) $(C_SRCS16)
-# Rule to rebuild the tools
-
-$(MAKEDEP):
- cd $(TOOLSDIR)/tools && $(MAKE) `basename $@`
-
# Rules for makefile
Makefile: Makefile.in $(TOPSRCDIR)/configure
@@ -202,10 +197,10 @@
# Rules for dependencies
-$(SUBDIRS:%=%/__depend__): $(MAKEDEP) dummy
+$(SUBDIRS:%=%/__depend__): dummy
cd `dirname $@` && $(MAKE) depend
-depend: $(MAKEDEP) $(IDL_SRCS:.idl=.h) $(SUBDIRS:%=%/__depend__)
+depend: $(IDL_SRCS:.idl=.h) $(SUBDIRS:%=%/__depend__)
$(MAKEDEP) $(INCLUDES) -C$(SRCDIR) $(C_SRCS) $(C_SRCS16) $(RC_SRCS) $(RC_SRCS16) $(MC_SRCS) $(IDL_SRCS) $(EXTRA_SRCS)
.PHONY: depend $(SUBDIRS:%=%/__depend__)
diff --git a/Makefile.in b/Makefile.in
index 7c78197..677d40c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -121,20 +121,7 @@
programs/__install__: libs tools include/__install__ dlls/__install-lib__
tools/__install__: tools
-# Dependencies rules
-
-$(SUBDIRS:%=%/__depend__): idl
-
-idl: $(WIDL) dummy
- cd include && $(MAKE) all
-
-$(WIDL): $(TOOLSDIR)/libs/libwpp.a $(TOOLSDIR)/libs/libwine_port.a
- cd $(TOOLSDIR)/tools/widl && $(MAKE) `basename $@`
-
-$(TOOLSDIR)/libs/libwpp.a $(TOOLSDIR)/libs/libwine_port.a:
- cd $(TOOLSDIR)/libs && $(MAKE) `basename $@`
-
-.PHONY: idl
+$(SUBDIRS:%=%/__depend__): tools include
# Test rules