From a9a0f4fbae363eb410326581a75920956b34b3b0 Mon Sep 17 00:00:00 2001 From: Raja R Harinath Date: Wed, 24 Nov 2004 12:42:06 +0000 Subject: * 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 --- runtime/Makefile.am | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) (limited to 'runtime') 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 -- cgit v1.2.3