Commit 3a3307d4 authored by Alexandre Julliard's avatar Alexandre Julliard

Force all the tools to be rebuilt before make depend, otherwise make

will try to do that from the include directory.
parent 998863bf
......@@ -169,11 +169,6 @@ $(RC_SRCS:.rc=.res) $(RC_SRCS16:.rc=.res): $(WRC) $(RC_BINARIES)
$(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 @@ winapi_check:: dummy
# 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__)
......
......@@ -121,20 +121,7 @@ fonts/__install__ loader/__install__ server/__install__: libs tools
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment