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
This commit is contained in:
Bart Van Assche
2014-06-02 15:31:50 +00:00
parent 91b077aa8c
commit 4792feae74

View File

@@ -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) $@