=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/Makefile,v retrieving revision 1.129 retrieving revision 1.136 diff -u -r1.129 -r1.136 --- src/Makefile 2016/10/06 18:56:17 1.129 +++ src/Makefile 2020/04/05 20:14:14 1.136 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.129 2016/10/06 18:56:17 natano Exp $ +# $OpenBSD: Makefile,v 1.136 2020/04/05 20:14:14 deraadt Exp $ # # For more information on building in tricky environments, please see @@ -71,23 +71,29 @@ @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; \ 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}' && \ + su ${BUILDUSER} -c 'exec ${MAKE}' && \ NOMAN=1 exec ${MAKE} install + /sbin/ldconfig -R cd ${.CURDIR}/gnu/lib && \ - su ${BUILDUSER} -c '${MAKE} depend && exec ${MAKE}' && \ + su ${BUILDUSER} -c 'exec ${MAKE}' && \ NOMAN=1 exec ${MAKE} install - su ${BUILDUSER} -c '${MAKE} depend && exec ${MAKE}' && \ + /sbin/ldconfig -R + su ${BUILDUSER} -c 'exec ${MAKE}' && \ exec ${MAKE} install /bin/sh ${.CURDIR}/distrib/sets/makeetcset ${.CURDIR} ${MAKE} .endif @@ -105,6 +111,6 @@ .PHONY: ${CROSS_TARGETS} \ build regression-tests includes beforeinstall afterinstall \ - all depend + all do-build .include