-$(tmpinst)/bin/mcs:
- $(MAKE) test-support-file target=$@ file=class/lib/default/mcs.exe
-
-$(tmpinst)/bin/mbas:
- $(MAKE) test-support-file target=$@ file=mbas/mbas.exe
-
-$(tmpinst)/bin/gmcs:
- $(MAKE) test-support-file target=$@ file=gmcs/gmcs.exe
-
-$(tmpinst)/bin/ilasm:
- $(MAKE) test-support-file target=$@ file=ilasm/ilasm.exe
-
-test-support-files:
- $(mkinstalldirs) $(tmpinst)/bin
- $(MAKE) $(TEST_SUPPORT_FILES)
+$(tmpinst)/bin/mcs: $(tmpinst)/bin/mono Makefile
+ echo '#! /bin/sh' > $@ ; \
+ r=`pwd`; m=`cd $(mcs_topdir) && pwd`; \
+ echo 'exec "'"$$r/$(tmpinst)/bin/mono"'" "'"$$m/class/lib/default/mcs.exe"'" "$$@"' >> $@ ; \
+ chmod +x $@