Alexandre Julliard : makefiles: Create the binary resources for winetest from the top-level makefile.

Alexandre Julliard julliard at winehq.org
Mon May 23 13:24:54 CDT 2011


Module: wine
Branch: master
Commit: e4eff85c8b6e38421165e91f180760b8dd0105b5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e4eff85c8b6e38421165e91f180760b8dd0105b5

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sun May 22 13:15:03 2011 +0200

makefiles: Create the binary resources for winetest from the top-level makefile.

---

 aclocal.m4                    |   15 +++++++--------
 configure                     |   17 +++++++----------
 programs/winetest/Makefile.in |    2 --
 3 files changed, 14 insertions(+), 20 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index bb8a248..b5c756d 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -151,7 +151,6 @@ Makefile: Makefile.in Make.vars.in Make.rules config.status
 	@./config.status Make.tmp Makefile"
 
 ALL_POT_FILES=""
-AC_SUBST(ALL_WINETEST_DEPENDS,["# Test binaries"])
 AC_SUBST(ALL_TEST_BINARIES,"")
 
 wine_fn_append_file ()
@@ -392,19 +391,19 @@ wine_fn_config_test ()
     ac_dir=$[1]
     ac_name=$[2]
     wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
-    wine_fn_append_rule ALL_WINETEST_DEPENDS \
-"$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
-	cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$[@] && \$(STRIP) \$[@]
-$ac_name.res: $ac_name.exe
-	echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" | \$(LDPATH) \$(WRC) \$(RCFLAGS) -o \$[@]"
     wine_fn_all_dir_rules $ac_dir Maketest.rules
 
     AS_VAR_IF([enable_tests],[no],,[wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
-"all programs/winetest: $ac_dir
+"all $ac_dir/$ac_name.exe$DLLEXT: $ac_dir
 .PHONY: $ac_dir
 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
 	@cd $ac_dir && \$(MAKE)
-test: $ac_dir/__test__
+programs/winetest/$ac_name.exe: $ac_dir/$ac_name.exe$DLLEXT
+	cp $ac_dir/$ac_name.exe$DLLEXT \$[@] && \$(STRIP) \$[@]
+programs/winetest/$ac_name.res: programs/winetest/$ac_name.exe
+	echo \"$ac_name.exe TESTRES \\\"programs/winetest/$ac_name.exe\\\"\" | \$(LDPATH) \$(WRC) \$(RCFLAGS) -o \$[@]
+programs/winetest: programs/winetest/$ac_name.res
+check test: $ac_dir/__test__
 .PHONY: $ac_dir/__test__
 $ac_dir/__test__: dummy
 	@cd $ac_dir && \$(MAKE) test
diff --git a/configure b/configure
index 6de7b01..5e0f5d5 100755
--- a/configure
+++ b/configure
@@ -606,7 +606,6 @@ ac_subst_vars='LTLIBOBJS
 LIBOBJS
 LINGUAS
 ALL_TEST_BINARIES
-ALL_WINETEST_DEPENDS
 LDAPLIBS
 LIBPOLL
 LIBDL
@@ -14609,8 +14608,6 @@ Makefile: Makefile.in Make.vars.in Make.rules config.status
 	@./config.status Make.tmp Makefile"
 
 ALL_POT_FILES=""
-ALL_WINETEST_DEPENDS="# Test binaries"
-
 ALL_TEST_BINARIES=""
 
 
@@ -14858,22 +14855,22 @@ wine_fn_config_test ()
     ac_dir=$1
     ac_name=$2
     wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
-    wine_fn_append_rule ALL_WINETEST_DEPENDS \
-"$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
-	cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
-$ac_name.res: $ac_name.exe
-	echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" | \$(LDPATH) \$(WRC) \$(RCFLAGS) -o \$@"
     wine_fn_all_dir_rules $ac_dir Maketest.rules
 
     if test "x$enable_tests" = xno; then :
 
 else
   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
-"all programs/winetest: $ac_dir
+"all $ac_dir/$ac_name.exe$DLLEXT: $ac_dir
 .PHONY: $ac_dir
 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
 	@cd $ac_dir && \$(MAKE)
-test: $ac_dir/__test__
+programs/winetest/$ac_name.exe: $ac_dir/$ac_name.exe$DLLEXT
+	cp $ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
+programs/winetest/$ac_name.res: programs/winetest/$ac_name.exe
+	echo \"$ac_name.exe TESTRES \\\"programs/winetest/$ac_name.exe\\\"\" | \$(LDPATH) \$(WRC) \$(RCFLAGS) -o \$@
+programs/winetest: programs/winetest/$ac_name.res
+check test: $ac_dir/__test__
 .PHONY: $ac_dir/__test__
 $ac_dir/__test__: dummy
 	@cd $ac_dir && \$(MAKE) test
diff --git a/programs/winetest/Makefile.in b/programs/winetest/Makefile.in
index c9a2c71..6efd895 100644
--- a/programs/winetest/Makefile.in
+++ b/programs/winetest/Makefile.in
@@ -39,5 +39,3 @@ dist: winetest-dist.exe$(DLLEXT)
 winetest-dist.exe$(DLLEXT): winetest.exe$(DLLEXT)
 	cp winetest.exe$(DLLEXT) $@
 	-upx -9 -qqq $@
-
- at ALL_WINETEST_DEPENDS@




More information about the wine-cvs mailing list