Re: [PATCH v2 07/12] Makefile: wrap cscope in quiet-command calls

2021-01-14 Thread Willian Rampazzo
On Thu, Jan 14, 2021 at 2:29 PM Alex Bennée  wrote:
>
> For prettier output.
>
> Signed-off-by: Alex Bennée 
> ---
>  Makefile | 14 +++---
>  1 file changed, 11 insertions(+), 3 deletions(-)
>

Reviewed-by: Willian Rampazzo 




Re: [PATCH v2 07/12] Makefile: wrap cscope in quiet-command calls

2021-01-14 Thread Philippe Mathieu-Daudé
On 1/14/21 5:57 PM, Alex Bennée wrote:
> For prettier output.
> 
> Signed-off-by: Alex Bennée 
> ---
>  Makefile | 14 +++---
>  1 file changed, 11 insertions(+), 3 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé 




[PATCH v2 07/12] Makefile: wrap cscope in quiet-command calls

2021-01-14 Thread Alex Bennée
For prettier output.

Signed-off-by: Alex Bennée 
---
 Makefile | 14 +++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index f7e9eb9f08..2a926aaeb0 100644
--- a/Makefile
+++ b/Makefile
@@ -282,9 +282,17 @@ TAGS:
 
 .PHONY: cscope
 cscope:
-   rm -f "$(SRC_PATH)"/cscope.*
-   $(find-src-path) -print | sed -e 's,^\./,,' > "$(SRC_PATH)/cscope.files"
-   cscope -b -i"$(SRC_PATH)/cscope.files" -f"$(SRC_PATH)"/cscope.out
+   $(call quiet-command,   \
+   rm -f "$(SRC_PATH)/"cscope.* ,  \
+   "cscope", "Remove old $@ files")
+   $(call quiet-command,   \
+   ($(find-src-path) -print | sed -e 's,^\./,,'\
+   > "$(SRC_PATH)/cscope.files"),  \
+   "cscope", "Create file list")
+   $(call quiet-command,   \
+   cscope -b -i"$(SRC_PATH)/cscope.files"  \
+   -f"$(SRC_PATH)"/cscope.out, \
+   "cscope", "Re-index $(SRC_PATH)")
 
 # Needed by "meson install"
 export DESTDIR
-- 
2.20.1