From 4792feae74faf8dd8abb1d87c0dcb4017b457e6c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 2 Jun 2014 15:31:50 +0000 Subject: [PATCH] Makefile: Only report which RPMs have been built if "make rpm" is run as a non-privileged user git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5560 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3e3637749..c85d9f619 100644 --- a/Makefile +++ b/Makefile @@ -402,9 +402,11 @@ scst-rpm: rpm: $(MAKE) scst-rpm $(MAKE) -C scstadmin rpm - @echo - @echo "The following RPMs have been built:" - @find -name '*.rpm' + @if [ "$$(id -u)" != 0 ]; then \ + echo; \ + echo "The following RPMs have been built:"; \ + find -name '*.rpm'; \ + fi 2perf: extraclean cd $(SCST_DIR) && $(MAKE) $@