From bf9e3e5763722c9668c6719a1de60ee58452b738 Mon Sep 17 00:00:00 2001 From: John Spencer Date: Mon, 25 Aug 2014 21:36:32 +0200 Subject: [PATCH] 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 Acked-by: Namhyung Kim Link: http://thread.gmane.org/gmane.linux.kernel.perf.user/1686 Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/config/utilities.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/config/utilities.mak b/tools/perf/config/utilities.mak index 4d985e0f03f5..7076a62d0ff7 100644 --- a/tools/perf/config/utilities.mak +++ b/tools/perf/config/utilities.mak @@ -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 #