[llvm-commits] [llvm-gcc-4.2] r68658 - /llvm-gcc-4.2/trunk/GNUmakefile
Bob Wilson
bob.wilson at apple.com
Wed Apr 8 16:46:12 PDT 2009
Author: bwilson
Date: Wed Apr 8 18:46:12 2009
New Revision: 68658
URL: http://llvm.org/viewvc/llvm-project?rev=68658&view=rev
Log:
Add a default target to complain when someone attempts a srcdir==objdir build.
Modified:
llvm-gcc-4.2/trunk/GNUmakefile
Modified: llvm-gcc-4.2/trunk/GNUmakefile
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/GNUmakefile?rev=68658&r1=68657&r2=68658&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/GNUmakefile (original)
+++ llvm-gcc-4.2/trunk/GNUmakefile Wed Apr 8 18:46:12 2009
@@ -9,6 +9,18 @@
# The compiler targetted at this host gets built anyway, but not installed
# unless it's listed in TARGETS.
+# The following default target is for the benefit of those who try to
+# build llvm-gcc in the source directory. GNU make will prefer to use
+# this GNUmakefile instead of the Makefile generated by configure. Since
+# builtit always invokes this makefile with an explicit target, report an
+# error for the default target and some other common gcc targets.
+.PHONY: all all-gcc all-host all-target bootstrap
+all all-gcc all-host all-target bootstrap:
+ @echo
+ @echo "Error: llvm-gcc cannot be built in the source directory."
+ @echo "Please follow the instructions in the README.LLVM file."
+ @exit 1
+
# Include the set of standard Apple makefile definitions.
ifndef CoreOSMakefiles
CoreOSMakefiles = $(MAKEFILEPATH)/CoreOS
More information about the llvm-commits
mailing list