summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-08-03 16:58:06 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-08-03 16:58:06 +0000
commit31635428413709f1a93109350f3ac2590e3d2062 (patch)
tree95837a8cb19e34b21814a47b26fab7317f6a5810
parent9c3876d7d852d84bcf317e625210699dd39696eb (diff)
Added a check to prevent rebuilding Mesa with a different configuration
without first doing 'make realclean'.
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bb593d4007..81d5eef435 100644
--- a/Makefile
+++ b/Makefile
@@ -144,6 +144,10 @@ sunos5-v8-static \
sunos5-v9 \
sunos5-v9-static \
ultrix-gcc:
+ @ if [ -e configs/current ] ; then \
+ echo "Please run 'make realclean' before changing configs" ; \
+ exit 1 ; \
+ fi
(cd configs && rm -f current && ln -s $@ current)
$(MAKE) default