summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Natano <natano@cvs.openbsd.org>2016-10-06 18:56:18 +0000
committerMartin Natano <natano@cvs.openbsd.org>2016-10-06 18:56:18 +0000
commitf716d267b01977746f7e5d626e54bdab0ac4ef82 (patch)
tree6cd02fde83f0ddfcd127ca244ab97612f6a27a81 /Makefile
parent7253eb0db78d257c00d0c97ed667b07aa53e1916 (diff)
Print the root check error message to stderr. While there add the name
of the target to the message to be more descriptive. ok deraadt tb
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9b08f0b92ea..50cff4b6056 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.128 2016/10/06 16:22:43 tb Exp $
+# $OpenBSD: Makefile,v 1.129 2016/10/06 18:56:17 natano Exp $
#
# For more information on building in tricky environments, please see
@@ -75,7 +75,7 @@ build:
cp /dev/null ${GLOBAL_AUTOCONF_CACHE}
.endif
@if [[ `id -u` -ne 0 ]]; then \
- echo 'must be called by root' 2>&1; \
+ echo $@ must be called by root >&2; \
false; \
fi
cd ${.CURDIR}/share/mk && exec ${MAKE} install