summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authornatano <natano@openbsd.org>2016-10-06 18:56:17 +0000
committernatano <natano@openbsd.org>2016-10-06 18:56:17 +0000
commit0afaca0c6d0be005bd6d442d79952668059c8937 (patch)
tree98369b9aab2cf168af917e51306199016a6b9993 /Makefile
parentUpdate the list of vmm ioctls that are allowed by pledge. (diff)
downloadwireguard-openbsd-0afaca0c6d0be005bd6d442d79952668059c8937.tar.xz
wireguard-openbsd-0afaca0c6d0be005bd6d442d79952668059c8937.zip
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