diff options
author | Martin Natano <natano@cvs.openbsd.org> | 2016-10-06 18:56:18 +0000 |
---|---|---|
committer | Martin Natano <natano@cvs.openbsd.org> | 2016-10-06 18:56:18 +0000 |
commit | f716d267b01977746f7e5d626e54bdab0ac4ef82 (patch) | |
tree | 6cd02fde83f0ddfcd127ca244ab97612f6a27a81 /Makefile | |
parent | 7253eb0db78d257c00d0c97ed667b07aa53e1916 (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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |