diff --git a/src/mesa/Makefile b/src/mesa/Makefile index 05cb27cca82..eea8eb9bde0 100644 --- a/src/mesa/Makefile +++ b/src/mesa/Makefile @@ -154,10 +154,10 @@ depend: $(ALL_SOURCES) subdirs: - @ if echo $(ASM_FLAGS) | grep USE_X86_ASM ; then \ + @ if echo "$(ASM_FLAGS)" | grep -q USE_X86_ASM ; then \ (cd x86 ; $(MAKE)) ; \ fi - @ if echo $(ASM_FLAGS) | grep USE_X86_64_ASM ; then \ + @ if echo "$(ASM_FLAGS)" | grep -q USE_X86_64_ASM ; then \ (cd x86 ; $(MAKE)) ; \ (cd x86-64 ; $(MAKE)) ; \ fi