Added a check to prevent rebuilding Mesa with a different configuration
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 3 Aug 2006 16:58:06 +0000 (16:58 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 3 Aug 2006 16:58:06 +0000 (16:58 +0000)
without first doing 'make realclean'.

Makefile

index bb593d4007360acb3c620931bc38b33e7a6e9ddb..81d5eef435664a78627f96e2a6806f8cb6d48261 100644 (file)
--- 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