* runtime/Makefile.am (wrapper-config): Elevated from being a test
authorRaja R Harinath <harinath@hurrynot.org>
Fri, 4 Feb 2005 06:41:18 +0000 (06:41 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Fri, 4 Feb 2005 06:41:18 +0000 (06:41 -0000)
support file called $(tmpinst)/config.
($(tmpinst)/bin/mono): Simplify.
(mcs-do-compiler-tests,mcs-compileall): Update.
* runtime/mono-wrapper.in: Use wrapper-config.
* Makefile.am (DIST_SUBDIRS): Sync with $(SUBDIRS).

svn path=/trunk/mono/; revision=40110

ChangeLog
Makefile.am
runtime/Makefile.am
runtime/mono-wrapper.in

index c1add653d743ca2b03ac05d1bf9dd5e9edfe59be..08d53363828ff40c9ef7e0c55e88d6fa6bfbac04 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2005-02-04  Raja R Harinath  <rharinath@novell.com>
 
+       * runtime/Makefile.am (wrapper-config): Elevated from being a test
+       support file called $(tmpinst)/config.
+       ($(tmpinst)/bin/mono): Simplify.
+       (mcs-do-compiler-tests,mcs-compileall): Update.
+       * runtime/mono-wrapper.in: Use wrapper-config.
+       
+       * Makefile.am (DIST_SUBDIRS): Sync with $(SUBDIRS).
+
        * runtime/Makefile.am (verify_profiles): Remove.
        (mcs-compileall): Use $(build_profiles) directly.  It now works on
        the net_2_0 profile too.
index 0a7b391bd5f375f40a6e8254197ad51632a4c098..f9d77579b41f560d280765e96b3f945c4f309cfe 100644 (file)
@@ -5,7 +5,7 @@ SUBDIRS = $(libgc_dir) mono $(ikvm_native_dir) support docs data runtime scripts
 
 # Keep in sync with SUBDIRS
 ## 'tools' is not normally built
-DIST_SUBDIRS = libgc mono docs data runtime scripts man samples ikvm-native support web tools
+DIST_SUBDIRS = libgc mono ikvm-native support docs data runtime scripts man samples web tools
 
 EXTRA_DIST= mono.pc.in mono.spec.in mint.pc.in
 
index 3d5e8c348debe61f70f7ddcb566577ec66292174..cf5b1dbfa532b31a695ca9e6b828f4c335602431 100644 (file)
@@ -18,7 +18,7 @@ $(symlinks):
        cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
 
 # The write check is to foil 'make distcheck'
-all-local: $(symlinks) mono-wrapper
+all-local: $(symlinks) mono-wrapper wrapper-config
        if test -w $(mcs_topdir); then :; else chmod -R +w $(mcs_topdir); fi
        d=`pwd`; cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper PROFILES='$(build_profiles)' all-profiles
 
@@ -54,9 +54,9 @@ clean-local:
        -rm -fr $(symlinks) $(tmpinst) .wapi
 
 if INSTALL_2_0
-TEST_SUPPORT_FILES = $(tmpinst)/config $(tmpinst)/bin/mono $(tmpinst)/bin/mcs $(tmpinst)/bin/mbas $(tmpinst)/bin/ilasm $(tmpinst)/bin/gmcs
+TEST_SUPPORT_FILES = $(tmpinst)/bin/mono $(tmpinst)/bin/mcs $(tmpinst)/bin/mbas $(tmpinst)/bin/ilasm $(tmpinst)/bin/gmcs
 else
-TEST_SUPPORT_FILES = $(tmpinst)/config $(tmpinst)/bin/mono $(tmpinst)/bin/mcs $(tmpinst)/bin/mbas $(tmpinst)/bin/ilasm
+TEST_SUPPORT_FILES = $(tmpinst)/bin/mono $(tmpinst)/bin/mcs $(tmpinst)/bin/mbas $(tmpinst)/bin/ilasm
 endif
 
 # List of NUnit testcases that should be 100% pass
@@ -84,32 +84,31 @@ mcs-do-test-profiles:
 
 mcs-do-run-test-profiles: test-support-files
        d=`pwd`; PATH=$$d/$(tmpinst)/bin:$$PATH ; export PATH ; \
-       ( cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/$(tmpinst)/bin/mono PROFILES='$(build_profiles)' run-test-profiles ) || ret=false ; \
+       ( cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper PROFILES='$(build_profiles)' run-test-profiles ) || ret=false ; \
        rm -fr $(tmpinst); $$ret
 
 # Use --compile-all as a poor man's PEVerify to detect invalid IL
-mcs-compileall: test-support-files
+mcs-compileall: mono-wrapper wrapper-config
        save_MONO_PATH=$$MONO_PATH; mcs_topdir=`cd $(mcs_topdir) && pwd`; ret=:; \
        for profile in $(build_profiles); do \
          MONO_PATH="$$mcs_topdir/class/lib/$$profile:$$save_MONO_PATH"; export MONO_PATH; \
          for i in $(mcs_topdir)/class/lib/$$profile/*.dll $(mcs_topdir)/class/lib/$$profile/*.exe; do \
-           if ./$(tmpinst)/bin/mono --compile-all $$i; then \
+           if ./mono-wrapper --compile-all $$i; then \
              echo $$i verified OK; \
            else \
              echo $$i verification failed; ret=false; \
            fi; done; done; \
-       rm -fr $(tmpinst); $$ret
+       $$ret
 
 check-local: mcs-compileall mcs-do-test-profiles
        $(MAKE) $(test_select) mcs-do-run-test-profiles
 
-$(tmpinst)/config: ../data/config
+wrapper-config: ../data/config
        d=`cd ../support && pwd`; \
        sed 's,target="libMonoPosixHelper[^"]*",target="'$$d/libMonoPosixHelper.la'",' ../data/config > $@
 
-$(tmpinst)/bin/mono: mono-wrapper $(tmpinst)/config
-       sed 's,/data/config",/runtime/$(tmpinst)/config",' mono-wrapper > $@
-       chmod +x $@
+$(tmpinst)/bin/mono: mono-wrapper wrapper-config
+       cp mono-wrapper $@
 
 $(tmpinst)/bin/mcs:
        $(MAKE) test-support-file target=$@ file=class/lib/default/mcs.exe
index a03fa731024c3528c68c4c27a2d9984a074b0a21..4ea240ef3358bd8a94e3269fe86ec51133ed375c 100644 (file)
@@ -3,4 +3,4 @@ r='@mono_build_root@'
 MONO_CFG_DIR='@mono_cfg_dir@'
 MONO_SHARED_DIR=$r/runtime
 export MONO_CFG_DIR MONO_SHARED_DIR
-exec "$r/libtool" --mode=execute "$r/@mono_runtime@" --config "$r/data/config" "$@"
+exec "$r/libtool" --mode=execute "$r/@mono_runtime@" --config "$r/runtime/wrapper-config" "$@"