don't build x86, x86-64 dirs if not needed
authorBrian <brian.paul@tungstengraphics.com>
Wed, 24 Oct 2007 22:24:06 +0000 (16:24 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 24 Oct 2007 22:24:06 +0000 (16:24 -0600)
src/mesa/Makefile

index a47cd4c023d0b3ea505da41ef4aa25ab7af64e5a..3722593f21b66108f5c359693017428ece2dfda2 100644 (file)
@@ -153,8 +153,13 @@ depend: $(ALL_SOURCES)
 
 
 subdirs:
-       @ (cd x86 ; $(MAKE))
-       @ (cd x86-64 ; $(MAKE))
+       @ if [ `echo $(ASM_FLAGS) | grep USE_X86_ASM` ] ; then \
+               (cd x86 ; $(MAKE)) ; \
+       fi
+       @ if [ `echo $(ASM_FLAGS) | grep USE_X86_64_ASM` ] ; then \
+               (cd x86 ; $(MAKE)) ; \
+               (cd x86-64 ; $(MAKE)) ; \
+       fi
 
 
 install: default gl.pc