-# internal targets
-
-mcs-do-full-build: tmpinst-dir
- tmpinst=`cd $(tmpinst) && pwd` ; \
- cd $(mcs_topdir) && $(MAKE) RUNTIME=$$tmpinst/bin/mono all-profiles
-
-populate-runtime-subdir:
- test -n '$(populate_profiles)'
- @srcdir=`cd $(srcdir) && pwd`; tmpinst=`pwd`/$(tmpinst) ; \
- for profile in $(populate_profiles); do \
- ( set fnord `echo $$profile | sed 's,:, ,g'` && \
- echo "cd $(mcs_topdir) && $(MAKE) RUNTIME=$$tmpinst/bin/mono PROGRAM_INSTALL_DIR=$$srcdir/runtime PROFILE=$$2 LIBRARY_INSTALL_DIR=$$srcdir/runtime/$$3 prefix=$$tmpinst/prefix install" && \
- cd $(mcs_topdir) && \
- $(MAKE) RUNTIME=$$tmpinst/bin/mono PROGRAM_INSTALL_DIR=$$srcdir/runtime PROFILE=$$2 LIBRARY_INSTALL_DIR=$$srcdir/runtime/$$3 prefix=$$tmpinst/prefix install ) || exit 1 ; \
- done
- find $(tmpinst)/prefix -type f -name '*jay*' -exec rm -f '{}' ';'
- for i in `find $(tmpinst)/prefix -type d -name '*jay*' -print`; do rm -f $$i/*; done
- test -z "`find $(tmpinst)/prefix -type f -print`"
- rm -rf $(tmpinst)/prefix
-
-tmpinst-dir:
- mkdir -p $(tmpinst) $(tmpinst)/bin $(tmpinst)/etc/mono/1.0 $(tmpinst)/etc/mono/2.0
- $(MAKE) tmpinst-dir-contents
-
-tmpinst-dir-contents: $(tmpinst)/bin/mono $(tmpinst)/etc/mono/1.0/machine.config $(tmpinst)/etc/mono/2.0/machine.config
-
-if PLATFORM_WIN32
-
-$(tmpinst)/bin/mono: $(srcdir)/Makefile.am
- echo '#! /bin/sh' > $@
- echo 'builddir="'`pwd`'"; win_builddir="'`cygpath -w -a .`'"' >> $@
- echo 'tmpinst="$$win_builddir\\$(tmpinst)"' >> $@
- echo 'MONO_CFG_DIR="$$tmpinst\\etc"' >> $@
- echo 'export MONO_CFG_DIR' >> $@
- echo 'exec "$$builddir/libtool" --mode=execute "$$builddir/$(mono_runtime).exe" "$$@"' >> $@
- chmod +x $@
-
-else
-
-$(tmpinst)/bin/mono: $(srcdir)/Makefile.am
- echo '#! /bin/sh' > $@
- echo 'builddir="'`pwd`'"; tmpinst=$$builddir/$(tmpinst)' >> $@
- echo 'MONO_CFG_DIR=$$tmpinst/etc' >> $@
- echo 'export MONO_CFG_DIR' >> $@
- echo 'exec "$$builddir/libtool" --mode=execute "$$builddir/$(mono_runtime)" --config "$$builddir/data/config" "$$@"' >> $@
- chmod +x $@
-
-endif
-
-$(tmpinst)/bin/pedump: $(srcdir)/Makefile.am
- (b=`pwd`; echo '#! /bin/sh'; echo 'exec "'"$$b/libtool"'" --mode=execute "'"$$b/mono/metadata/pedump"'" "$$@"') > $@
- chmod +x $@
-
-TEST_SUPPORT_FILES = $(tmpinst)/bin/mcs $(tmpinst)/bin/mbas $(tmpinst)/bin/ilasm $(tmpinst)/bin/gmcs
-mcs-do-run-test-profiles: tmpinst-dir
- $(MAKE) $(TEST_SUPPORT_FILES)
- tmpinst=`cd $(tmpinst) && pwd` ; ret=: ; \
- PATH=$$tmpinst/bin:$$PATH ; export PATH ; \
- ( cd $(mcs_topdir) && $(MAKE) RUNTIME=$$tmpinst/bin/mono run-test-profiles ) || ret=false ; \
- rm -f $(TEST_SUPPORT_FILES) ; $$ret