From c7e2e9d044e6d3d37ede6999e8e8a7ed03bf0974 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 20 Jul 2014 06:01:49 +0000 Subject: [PATCH] Makefile: Only report which RPMs have been built if "make rpm" is run as a non-privileged user (merge r5560 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5688 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) $@