=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/Makefile,v retrieving revision 1.128 retrieving revision 1.132 diff -u -r1.128 -r1.132 --- src/Makefile 2016/10/06 16:22:43 1.128 +++ src/Makefile 2017/01/29 17:06:56 1.132 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.128 2016/10/06 16:22:43 tb Exp $ +# $OpenBSD: Makefile,v 1.132 2017/01/29 17:06:56 rpe Exp $ # # For more information on building in tricky environments, please see @@ -71,16 +71,20 @@ @false .else build: + umask ${WOBJUMASK}; exec ${MAKE} do-build + +do-build: .ifdef GLOBAL_AUTOCONF_CACHE - cp /dev/null ${GLOBAL_AUTOCONF_CACHE} + ${INSTALL} -c -o ${BUILDUSER} -g ${WOBJGROUP} -m 664 /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 - exec ${MAKE} includes exec ${MAKE} cleandir + exec ${MAKE} includes cd ${.CURDIR}/lib && \ su ${BUILDUSER} -c '${MAKE} depend && exec ${MAKE}' && \ NOMAN=1 exec ${MAKE} install