use grep -q
[mesa.git] / src / mesa / Makefile
index 3722593f21b66108f5c359693017428ece2dfda2..77bb7be48066d071f67ea10250611fb21df750c7 100644 (file)
@@ -153,10 +153,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