diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2004-11-24 15:42:06 +0300 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2004-11-24 15:42:06 +0300 |
commit | a9a0f4fbae363eb410326581a75920956b34b3b0 (patch) | |
tree | 3ad6f9f52fe1f4d7ee9e866ed7f143fe4ddb478b | |
parent | a459a3d3587012dbb63e4aca78151ce8d61fcccb (diff) |
* runtime/Makefile.am (AUTOMAKE_OPTIONS): Set to 'cygnus'.
Prevent a redundant 'make all' pass during 'make check'.
(build_profiles): Rename from install_profiles.
(check_profiles): New.
(TEST_SUPPORT_FILES): Don't include 'gmcs' if we're not building
the .NET2.0 profile.
(all-local,check-local): Use them.
(install,install-exec,install-data): Override automake rules to
prevent a redundant 'make all' pass.
svn path=/trunk/mono/; revision=36475
-rw-r--r-- | ChangeLog | 12 | ||||
-rw-r--r-- | runtime/Makefile.am | 34 |
2 files changed, 38 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog index 0aaeba19b8e..84a3b349312 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2004-11-24 Raja R Harinath <rharinath@novell.com> + + * runtime/Makefile.am (AUTOMAKE_OPTIONS): Set to 'cygnus'. + Prevent a redundant 'make all' pass during 'make check'. + (build_profiles): Rename from install_profiles. + (check_profiles): New. + (TEST_SUPPORT_FILES): Don't include 'gmcs' if we're not building + the .NET2.0 profile. + (all-local,check-local): Use them. + (install,install-exec,install-data): Override automake rules to + prevent a redundant 'make all' pass. + 2004-11-23 Chris Toshok <toshok@ximian.com> * Makefile.am (bootstrap): echo -> @echo. diff --git a/runtime/Makefile.am b/runtime/Makefile.am index 94ebc1097bc..44d362fce2f 100644 --- a/runtime/Makefile.am +++ b/runtime/Makefile.am @@ -2,6 +2,9 @@ # being compiled on windows. # +# hack to prevent 'check' from depending on 'all' +AUTOMAKE_OPTIONS = cygnus + tmpinst = _tmpinst noinst_SCRIPTS = mono-wrapper @@ -15,29 +18,44 @@ $(symlinks): cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ all-local: $(symlinks) mono-wrapper - d=`pwd`; cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper all-profiles + d=`pwd`; cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper PROFILES='$(build_profiles)' all-profiles if INSTALL_2_0 -install_profiles = default net_2_0 +build_profiles = default net_2_0 +clean_profiles = basic net_1_1_bootstrap default net_2_0_bootstrap net_2_0 else -install_profiles = default +build_profiles = default +clean_profiles = basic net_1_1_bootstrap default endif -install-exec-local: - d=`pwd`; cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper prefix=$(exec_prefix) PROFILES='$(install_profiles)' install-profiles +# override automake +install: install-exec install-data + +# override automake +install-exec: + d=`pwd`; cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper prefix=$(exec_prefix) PROFILES='$(build_profiles)' install-profiles + +# override automake +install-data: + @: clean-local: -rm -fr $(symlinks) - d=`pwd`; cd $(mcs_topdir) && $(MAKE) PROFILES='basic net_1_1_bootstrap default net_2_0_bootstrap net_2_0' clean-profiles + d=`pwd`; cd $(mcs_topdir) && $(MAKE) PROFILES='$(clean_profiles)' clean-profiles -rm -fr $(tmpinst) +if INSTALL_2_0 TEST_SUPPORT_FILES = $(tmpinst)/bin/mcs $(tmpinst)/bin/mbas $(tmpinst)/bin/ilasm $(tmpinst)/bin/gmcs +else +TEST_SUPPORT_FILES = $(tmpinst)/bin/mcs $(tmpinst)/bin/mbas $(tmpinst)/bin/ilasm +endif + check-local: $(mkdir_p) $(tmpinst)/bin $(MAKE) $(TEST_SUPPORT_FILES) d=`pwd`; PATH=$$d/$(tmpinst)/bin:$$PATH ; export PATH ; \ - ( cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper run-test-profiles ) || ret=false ; \ - rm -f $(tmpinst) ; $$ret + ( cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper PROFILES='$(build_profiles)' run-test-profiles ) || ret=false ; \ + rm -fr $(tmpinst) ; $$ret $(tmpinst)/bin/mcs: $(MAKE) test-support-file target=$@ file=class/lib/default/mcs.exe |