perf tools: Fix GNU-only grep usage in Makefile

This makes it work with non-GNU grep's as well.

Signed-off-by: John Spencer <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Link: http://thread.gmane.org/gmane.linux.kernel.perf.user/1686
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
John Spencer 2014-08-25 21:36:32 +02:00 • committed by Arnaldo Carvalho de Melo
commit bf9e3e5763

View file

@ -132,7 +132,7 @@ endef
#
# Usage: bool-value = $(call is-absolute,path)
#
is-absolute = $(shell echo $(shell-sq) | grep ^/ -q && echo y)
is-absolute = $(shell echo $(shell-sq) | grep -q ^/ && echo y)
# lookup
#