makefiles: Generate dependencies to match each makefile to its subdirectory.

This commit is contained in:
Alexandre Julliard 2010-02-08 20:47:41 +01:00
parent 4d3b0205f5
commit 5496636850
3 changed files with 32 additions and 14 deletions

View File

@ -115,20 +115,19 @@ tools/wmc/__install__ tools/wmc/__install-dev__: tools/wmc
tools/wrc/__install__ tools/wrc/__install-dev__: tools/wrc
RECURSE_TARGETS = \
$(SUBDIRS) \
$(SUBDIRS:%=%/__clean__) \
$(SUBDIRS:%=%/__depend__) \
$(SUBDIRS:%=%/__install-dev__) \
$(SUBDIRS:%=%/__install-lib__) \
$(SUBDIRS:%=%/__install__) \
$(SUBDIRS:%=%/__uninstall__) \
$(TESTSUBDIRS:%=%/__crosstest__) \
$(TESTSUBDIRS:%=%/__test__) \
$(TESTSUBDIRS:%=%/__testclean__)
__clean__ \
__depend__ \
__install__ \
__instal-dev__ \
__install-lib__ \
__uninstall__ \
__crosstest__
depend $(RECURSE_TARGETS): $(MAKEDEP)
dlls $(RECURSE_TARGETS:%=dlls/%): $(MAKEDEP)
programs $(RECURSE_TARGETS:%=programs/%): $(MAKEDEP)
depend: $(MAKEDEP)
$(MAKEDEP): include/config.h
$(MAKEDEP): include/config.h tools/Makefile
@cd $(TOOLSDIR)/tools && $(MAKE) makedep$(TOOLSEXT)
# Test rules
@ -166,7 +165,8 @@ $(ALL_CONFIGS):
.BEGIN: Makefile
.MAKEFILEDEPS:
$(RECURSE_TARGETS) $(MAKEDEP): $(ALL_MAKEFILES)
dlls $(RECURSE_TARGETS:%=dlls/%): $(ALL_MAKEFILES)
programs $(RECURSE_TARGETS:%=programs/%): $(ALL_MAKEFILES)
distclean::
$(RM) $(ALL_CONFIGS)

3
aclocal.m4 vendored
View File

@ -176,7 +176,8 @@ m4_ifval([$4],[test "x$ac_enable" != xno]m4_foreach([ac_var],[$4],[ && ac_var="$
ac_dir"]))
AS_VAR_POPDEF([ac_enable])dnl
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
[$1: ]m4_ifval([$2],[$1.in $2],[$1.in]) config.status"
m4_ifval(ac_dir,m4_ifval([$3],,[\$(RECURSE_TARGETS:%=ac_dir/%) ac_dir: $1 \$(MAKEDEP)
]))[$1: ]m4_ifval([$2],[$1.in $2],[$1.in]) config.status"
AC_CONFIG_FILES([$1])dnl
m4_popdef([ac_dir])])

17
configure vendored
View File

@ -13767,6 +13767,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
test "x$enable_dlls" != xno && ALL_TOP_DIRS="$ALL_TOP_DIRS \\
dlls"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=dlls/%) dlls: dlls/Makefile \$(MAKEDEP)
dlls/Makefile: dlls/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files dlls/Makefile"
@ -18302,6 +18303,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
test "x$enable_documentation" != xno && ALL_TOP_DIRS="$ALL_TOP_DIRS \\
documentation"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=documentation/%) documentation: documentation/Makefile \$(MAKEDEP)
documentation/Makefile: documentation/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files documentation/Makefile"
@ -18310,6 +18312,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
test "x$enable_fonts" != xno && ALL_TOP_DIRS="$ALL_TOP_DIRS \\
fonts"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=fonts/%) fonts: fonts/Makefile \$(MAKEDEP)
fonts/Makefile: fonts/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files fonts/Makefile"
@ -18318,6 +18321,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
test "x$enable_include" != xno && ALL_TOP_DIRS="$ALL_TOP_DIRS \\
include"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=include/%) include: include/Makefile \$(MAKEDEP)
include/Makefile: include/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files include/Makefile"
@ -18325,6 +18329,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
libs/port/Makefile"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=libs/port/%) libs/port: libs/port/Makefile \$(MAKEDEP)
libs/port/Makefile: libs/port/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files libs/port/Makefile"
@ -18332,6 +18337,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
libs/wine/Makefile"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=libs/wine/%) libs/wine: libs/wine/Makefile \$(MAKEDEP)
libs/wine/Makefile: libs/wine/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files libs/wine/Makefile"
@ -18339,6 +18345,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
libs/wpp/Makefile"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=libs/wpp/%) libs/wpp: libs/wpp/Makefile \$(MAKEDEP)
libs/wpp/Makefile: libs/wpp/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files libs/wpp/Makefile"
@ -18347,6 +18354,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
test "x$enable_loader" != xno && ALL_TOP_DIRS="$ALL_TOP_DIRS \\
loader"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=loader/%) loader: loader/Makefile \$(MAKEDEP)
loader/Makefile: loader/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files loader/Makefile"
@ -18355,6 +18363,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
test "x$enable_programs" != xno && ALL_TOP_DIRS="$ALL_TOP_DIRS \\
programs"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=programs/%) programs: programs/Makefile \$(MAKEDEP)
programs/Makefile: programs/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files programs/Makefile"
@ -18857,6 +18866,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
test "x$enable_server" != xno && ALL_TOP_DIRS="$ALL_TOP_DIRS \\
server"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=server/%) server: server/Makefile \$(MAKEDEP)
server/Makefile: server/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files server/Makefile"
@ -18865,6 +18875,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
test "x$enable_tools" != xno && ALL_TOOL_DIRS="$ALL_TOOL_DIRS \\
tools"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=tools/%) tools: tools/Makefile \$(MAKEDEP)
tools/Makefile: tools/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files tools/Makefile"
@ -18873,6 +18884,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
test "x$enable_tools" != xno && ALL_TOOL_DIRS="$ALL_TOOL_DIRS \\
tools/widl"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=tools/widl/%) tools/widl: tools/widl/Makefile \$(MAKEDEP)
tools/widl/Makefile: tools/widl/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files tools/widl/Makefile"
@ -18881,6 +18893,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
test "x$enable_tools" != xno && ALL_TOOL_DIRS="$ALL_TOOL_DIRS \\
tools/winebuild"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=tools/winebuild/%) tools/winebuild: tools/winebuild/Makefile \$(MAKEDEP)
tools/winebuild/Makefile: tools/winebuild/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files tools/winebuild/Makefile"
@ -18889,6 +18902,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
test "x$enable_tools" != xno && ALL_TOOL_DIRS="$ALL_TOOL_DIRS \\
tools/winedump"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=tools/winedump/%) tools/winedump: tools/winedump/Makefile \$(MAKEDEP)
tools/winedump/Makefile: tools/winedump/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files tools/winedump/Makefile"
@ -18897,6 +18911,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
test "x$enable_tools" != xno && ALL_TOOL_DIRS="$ALL_TOOL_DIRS \\
tools/winegcc"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=tools/winegcc/%) tools/winegcc: tools/winegcc/Makefile \$(MAKEDEP)
tools/winegcc/Makefile: tools/winegcc/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files tools/winegcc/Makefile"
@ -18905,6 +18920,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
test "x$enable_tools" != xno && ALL_TOOL_DIRS="$ALL_TOOL_DIRS \\
tools/wmc"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=tools/wmc/%) tools/wmc: tools/wmc/Makefile \$(MAKEDEP)
tools/wmc/Makefile: tools/wmc/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files tools/wmc/Makefile"
@ -18913,6 +18929,7 @@ ALL_MAKEFILES="$ALL_MAKEFILES \\
test "x$enable_tools" != xno && ALL_TOOL_DIRS="$ALL_TOOL_DIRS \\
tools/wrc"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
\$(RECURSE_TARGETS:%=tools/wrc/%) tools/wrc: tools/wrc/Makefile \$(MAKEDEP)
tools/wrc/Makefile: tools/wrc/Makefile.in Make.rules config.status"
ac_config_files="$ac_config_files tools/wrc/Makefile"