Ver Fonte

2002-12-15 Alp Toker <[email protected]>

	* makefile.gnu: make sure mcs is in PATH, otherwise tell user to read
	INSTALL.txt

svn path=/trunk/mcs/; revision=9679
Alp Toker há 23 anos atrás
pai
commit
ebebc496df
2 ficheiros alterados com 12 adições e 0 exclusões
  1. 5 0
      mcs/ChangeLog
  2. 7 0
      mcs/makefile.gnu

+ 5 - 0
mcs/ChangeLog

@@ -1,3 +1,8 @@
+2002-12-15  Alp Toker  <[email protected]>
+
+	* makefile.gnu: make sure mcs is in PATH, otherwise tell user to read
+	INSTALL.txt
+
 2002-12-10  Daniel Morgan <[email protected]>
 
 	* makefile

+ 7 - 0
mcs/makefile.gnu

@@ -1,11 +1,18 @@
 DIRS=jay mcs class nunit monoresgen ilasm tools
 DIST=monocharge-`date -u +%Y%m%d`
+MCS = mcs
 
 #nant doesn't work yet
 
 default: all
 
 all:
+	if ! which $(MCS); then \
+		echo You must have a C\# compiler installed to continue.; \
+		echo This is typically provided by \'mono\'.; \
+		echo Read INSTALL.txt for details.; \
+		exit 1; \
+	fi;
 	for i in $(DIRS) ; do \
 		$(MAKE) -C $$i -f makefile.gnu $@ || exit 1; \
 	done