Revised version of a patch for PR222 that works with my version of gmake.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11104 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Makefile b/Makefile
index f9b834b..559cdfe 100644
--- a/Makefile
+++ b/Makefile
@@ -7,9 +7,14 @@
 # 
 ##===----------------------------------------------------------------------===##
 LEVEL = .
-DIRS = lib/Support utils lib tools runtime
+DIRS = lib/Support utils lib tools 
 OPTIONAL_DIRS = projects
 
+ifneq ($(MAKECMDGOALS),tools-only)
+DIRS += runtime
+endif
+
+
 include $(LEVEL)/Makefile.common
 
 test :: all
@@ -22,7 +27,6 @@
 	                  $(LEVEL)/config.log \
 	                  $(LEVEL)/TAGS
 
-tools-only: DIRS = $(DIRS:runtime=)
 tools-only: all
 
 configure: autoconf/configure.ac autoconf/aclocal.m4