=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/Makefile,v retrieving revision 1.130 retrieving revision 1.133 diff -u -r1.130 -r1.133 --- src/Makefile 2016/10/18 02:47:07 1.130 +++ src/Makefile 2017/04/14 21:37:15 1.133 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.130 2016/10/18 02:47:07 tb Exp $ +# $OpenBSD: Makefile,v 1.133 2017/04/14 21:37:15 espie Exp $ # # For more information on building in tricky environments, please see @@ -71,8 +71,12 @@ @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; \ @@ -105,6 +109,6 @@ .PHONY: ${CROSS_TARGETS} \ build regression-tests includes beforeinstall afterinstall \ - all depend + all depend do-build .include