From aa3747bf28d1e327e973dbac5e4da5e8a5b125e2 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Tue, 5 Feb 2008 21:17:10 +0000 Subject: [PATCH] 2008-02-05 Zoltan Varga * Makefile: Abort with an error message if make is typed directly in this directory, instead from the 'mono' directory. svn path=/trunk/mcs/; revision=94952 --- mcs/ChangeLog | 5 +++++ mcs/Makefile | 13 ++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/mcs/ChangeLog b/mcs/ChangeLog index b4032a1410f..40925d3bbb3 100644 --- a/mcs/ChangeLog +++ b/mcs/ChangeLog @@ -1,3 +1,8 @@ +2008-02-05 Zoltan Varga + + * Makefile: Abort with an error message if make is typed directly in this + directory, instead from the 'mono' directory. + 2007-12-06 Atsushi Enomoto * Makefile: currently Sys.Web.Extensions is not ready for diff --git a/mcs/Makefile b/mcs/Makefile index 4202be7f8b7..b33aad15c46 100644 --- a/mcs/Makefile +++ b/mcs/Makefile @@ -39,12 +39,12 @@ net_2_0_centum_tests := \ class/Microsoft.Build.Framework \ class/Microsoft.Build.Utilities \ class/Microsoft.Build.Engine - #class/Microsoft.Build.Tasks - #class/Mono.C5 - +#class/Microsoft.Build.Tasks +#class/Mono.C5 + net_3_5_centum_tests := \ class/System.Xml.Linq - #class/System.Web.Extensions +#class/System.Web.Extensions ifdef ONLY_CENTUM_TESTS TEST_SUBDIRS := $($(PROFILE)_centum_tests) @@ -56,12 +56,15 @@ endif include build/rules.make -all-recursive $(STD_TARGETS:=-recursive): platform-check profile-check +all-recursive $(STD_TARGETS:=-recursive): dir-check platform-check profile-check .PHONY: all-local $(STD_TARGETS:=-local) all-local $(STD_TARGETS:=-local): @: +dir-check: + @if [ "$(NO_DIR_CHECK)" = "" ]; then echo "Running make from the mcs directory is not supported. Run make from the parent directory (if using a tarball), or from the directory where the runtime is checked out (if using an SVN checkout)."; exit 1; fi + # fun specialty targets PROFILES = default net_2_0 net_3_5 -- 2.25.1