Author: ache Date: Thu Jul 26 10:10:54 2012 New Revision: 238795 URL: http://svn.freebsd.org/changeset/base/238795
Log: Try to avoid all files dependence on the modification time of the large and often modified directory created symbolic links points to - it cause unnecessary full rebuilds each time make runs when directory is changed. So do it only if symbolic link does not exists, which usually means that objdir is clean anyway. MFC after: 1 week Modified: head/sys/boot/ficl/Makefile head/sys/boot/zfs/Makefile Modified: head/sys/boot/ficl/Makefile ============================================================================== --- head/sys/boot/ficl/Makefile Thu Jul 26 09:27:00 2012 (r238794) +++ head/sys/boot/ficl/Makefile Thu Jul 26 10:10:54 2012 (r238795) @@ -54,9 +54,11 @@ softcore.c: ${SOFTWORDS} softcore.awk | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET} .if ${MACHINE_CPUARCH} == "amd64" +.if !exists(machine) ${SRCS:M*.c:R:S/$/.o/g}: machine beforedepend ${OBJS}: machine +.endif machine: ln -sf ${.CURDIR}/../../i386/include machine Modified: head/sys/boot/zfs/Makefile ============================================================================== --- head/sys/boot/zfs/Makefile Thu Jul 26 09:27:00 2012 (r238794) +++ head/sys/boot/zfs/Makefile Thu Jul 26 10:10:54 2012 (r238795) @@ -33,5 +33,7 @@ machine: .include <bsd.lib.mk> .if ${MACHINE_CPUARCH} == "amd64" +.if !exists(machine) beforedepend ${OBJS}: machine .endif +.endif _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"