Commit 44cff7e9 authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Output all the test rules explicitly for each module.

parent e55ff7fe
...@@ -32,7 +32,6 @@ ALL_DLL_DIRS = @ALL_DLL_DIRS@ ...@@ -32,7 +32,6 @@ ALL_DLL_DIRS = @ALL_DLL_DIRS@
ALL_INSTALL_DIRS = @ALL_INSTALL_DIRS@ ALL_INSTALL_DIRS = @ALL_INSTALL_DIRS@
ALL_PROGRAM_DIRS = @ALL_PROGRAM_DIRS@ ALL_PROGRAM_DIRS = @ALL_PROGRAM_DIRS@
ALL_STATICLIB_DIRS = @ALL_STATICLIB_DIRS@ ALL_STATICLIB_DIRS = @ALL_STATICLIB_DIRS@
ALL_TEST_DIRS = @ALL_TEST_DIRS@
ALL_TOOL_DIRS = @ALL_TOOL_DIRS@ ALL_TOOL_DIRS = @ALL_TOOL_DIRS@
ALL_TOP_DIRS = @ALL_TOP_DIRS@ ALL_TOP_DIRS = @ALL_TOP_DIRS@
...@@ -43,8 +42,7 @@ BUILDSUBDIRS = \ ...@@ -43,8 +42,7 @@ BUILDSUBDIRS = \
$(ALL_TOP_DIRS) \ $(ALL_TOP_DIRS) \
$(ALL_STATICLIB_DIRS) \ $(ALL_STATICLIB_DIRS) \
$(ALL_DLL_DIRS) \ $(ALL_DLL_DIRS) \
$(ALL_PROGRAM_DIRS) \ $(ALL_PROGRAM_DIRS)
$(ALL_TEST_DIRS)
# Sub-directories to run make install/uninstall into # Sub-directories to run make install/uninstall into
INSTALLSUBDIRS = \ INSTALLSUBDIRS = \
...@@ -140,22 +138,6 @@ uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__) dummy ...@@ -140,22 +138,6 @@ uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__) dummy
uninstall:: uninstall::
-rmdir $(DESTDIR)$(datadir)/wine $(DESTDIR)$(fakedlldir) $(DESTDIR)$(dlldir) -rmdir $(DESTDIR)$(datadir)/wine $(DESTDIR)$(fakedlldir) $(DESTDIR)$(dlldir)
# Rules for testing
$(ALL_TEST_DIRS:%=%/__test__): dummy
@cd `dirname $@` && $(MAKE) test
$(ALL_TEST_DIRS:%=%/__crosstest__): dummy
@cd `dirname $@` && $(MAKE) crosstest
check test:: $(ALL_TEST_DIRS:%=%/__test__)
crosstest:: $(ALL_TEST_DIRS:%=%/__crosstest__)
testclean::
$(RM) $(ALL_TEST_DIRS:%=%/*.ok)
.PHONY: check test testclean crosstest $(ALL_TEST_DIRS:%=%/__test__) $(ALL_TEST_DIRS:%=%/__crosstest__)
# Rules for auto documentation # Rules for auto documentation
DOCSUBDIRS = $(ALL_DLL_DIRS) DOCSUBDIRS = $(ALL_DLL_DIRS)
...@@ -193,7 +175,6 @@ __builddeps__ __buildcrossdeps__: __tooldeps__ include ...@@ -193,7 +175,6 @@ __builddeps__ __buildcrossdeps__: __tooldeps__ include
loader server: libs/port libs/wine tools loader server: libs/port libs/wine tools
fonts: tools fonts: tools
include: tools/widl include: tools/widl
programs/winetest: $(ALL_TEST_DIRS)
libs/wine $(ALL_TOOL_DIRS): libs/port libs/wine $(ALL_TOOL_DIRS): libs/port
tools/wmc tools/wrc: tools tools/wmc tools/wrc: tools
tools tools/wmc tools/wrc: libs/wine tools tools/wmc tools/wrc: libs/wine
......
...@@ -152,7 +152,6 @@ AC_SUBST(ALL_DLL_DIRS,"") ...@@ -152,7 +152,6 @@ AC_SUBST(ALL_DLL_DIRS,"")
AC_SUBST(ALL_TOOL_DIRS,"") AC_SUBST(ALL_TOOL_DIRS,"")
AC_SUBST(ALL_STATICLIB_DIRS,"") AC_SUBST(ALL_STATICLIB_DIRS,"")
AC_SUBST(ALL_INSTALL_DIRS,"") AC_SUBST(ALL_INSTALL_DIRS,"")
AC_SUBST(ALL_TEST_DIRS,"")
AC_SUBST(ALL_TEST_BINARIES,"") AC_SUBST(ALL_TEST_BINARIES,"")
AC_SUBST(ALL_PROGRAM_DIRS,"") AC_SUBST(ALL_PROGRAM_DIRS,"")
AC_SUBST(ALL_PROGRAM_BIN_INSTALL_DIRS,"") AC_SUBST(ALL_PROGRAM_BIN_INSTALL_DIRS,"")
...@@ -284,12 +283,19 @@ $ac_name.rc: ...@@ -284,12 +283,19 @@ $ac_name.rc:
$ac_name.res: $ac_name.rc $ac_name.exe" $ac_name.res: $ac_name.rc $ac_name.exe"
wine_fn_append_file ALL_DIRS $ac_dir wine_fn_append_file ALL_DIRS $ac_dir
wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"$ac_dir: __builddeps__ "$ac_dir/__clean__: $ac_dir/Makefile
$ac_dir/__crosstest__: __buildcrossdeps__
$ac_dir/__clean__ $ac_dir/__crosstest__ $ac_dir: $ac_dir/Makefile
$ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status Maketest.rules \$(MAKEDEP) $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status Maketest.rules \$(MAKEDEP)
@./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend" @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
AS_VAR_IF([enable_tests],[no],,[wine_fn_append_file ALL_TEST_DIRS $ac_dir])
AS_VAR_IF([enable_tests],[no],,[wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"all programs/winetest: $ac_dir
$ac_dir: $ac_dir/Makefile __builddeps__
crosstest:: $ac_dir/Makefile __buildcrossdeps__
@cd $ac_dir && \$(MAKE) crosstest
test::
@cd $ac_dir && \$(MAKE) test
testclean::
\$(RM) $ac_dir/*.ok"])
} }
wine_fn_config_tool () wine_fn_config_tool ()
......
...@@ -599,7 +599,6 @@ LIBOBJS ...@@ -599,7 +599,6 @@ LIBOBJS
ALL_PROGRAM_BIN_INSTALL_DIRS ALL_PROGRAM_BIN_INSTALL_DIRS
ALL_PROGRAM_DIRS ALL_PROGRAM_DIRS
ALL_TEST_BINARIES ALL_TEST_BINARIES
ALL_TEST_DIRS
ALL_INSTALL_DIRS ALL_INSTALL_DIRS
ALL_STATICLIB_DIRS ALL_STATICLIB_DIRS
ALL_TOOL_DIRS ALL_TOOL_DIRS
...@@ -13874,8 +13873,6 @@ ALL_STATICLIB_DIRS="" ...@@ -13874,8 +13873,6 @@ ALL_STATICLIB_DIRS=""
ALL_INSTALL_DIRS="" ALL_INSTALL_DIRS=""
ALL_TEST_DIRS=""
ALL_TEST_BINARIES="" ALL_TEST_BINARIES=""
ALL_PROGRAM_DIRS="" ALL_PROGRAM_DIRS=""
...@@ -14022,15 +14019,22 @@ $ac_name.rc: ...@@ -14022,15 +14019,22 @@ $ac_name.rc:
$ac_name.res: $ac_name.rc $ac_name.exe" $ac_name.res: $ac_name.rc $ac_name.exe"
wine_fn_append_file ALL_DIRS $ac_dir wine_fn_append_file ALL_DIRS $ac_dir
wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"$ac_dir: __builddeps__ "$ac_dir/__clean__: $ac_dir/Makefile
$ac_dir/__crosstest__: __buildcrossdeps__
$ac_dir/__clean__ $ac_dir/__crosstest__ $ac_dir: $ac_dir/Makefile
$ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status Maketest.rules \$(MAKEDEP) $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status Maketest.rules \$(MAKEDEP)
@./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend" @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
if test "x$enable_tests" = x""no; then : if test "x$enable_tests" = x""no; then :
else else
wine_fn_append_file ALL_TEST_DIRS $ac_dir wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"all programs/winetest: $ac_dir
$ac_dir: $ac_dir/Makefile __builddeps__
crosstest:: $ac_dir/Makefile __buildcrossdeps__
@cd $ac_dir && \$(MAKE) crosstest
test::
@cd $ac_dir && \$(MAKE) test
testclean::
\$(RM) $ac_dir/*.ok"
fi fi
} }
......
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