summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2012-07-26 10:10:54 +0000
committerache <ache@FreeBSD.org>2012-07-26 10:10:54 +0000
commitf656f9bc4c214513dd65579c679f67d5c8f8c1ea (patch)
tree23ce2fe17083d12b07ee6c70a652b6a89c17b29b /sys/boot
parentd3fc8e917d0e4229d20c4bce04b682b3710fd2dc (diff)
downloadFreeBSD-src-f656f9bc4c214513dd65579c679f67d5c8f8c1ea.zip
FreeBSD-src-f656f9bc4c214513dd65579c679f67d5c8f8c1ea.tar.gz
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
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/ficl/Makefile2
-rw-r--r--sys/boot/zfs/Makefile2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile
index e441573..1f8de9b 100644
--- a/sys/boot/ficl/Makefile
+++ b/sys/boot/ficl/Makefile
@@ -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
diff --git a/sys/boot/zfs/Makefile b/sys/boot/zfs/Makefile
index a6fba3a..ff423a0 100644
--- a/sys/boot/zfs/Makefile
+++ b/sys/boot/zfs/Makefile
@@ -33,5 +33,7 @@ machine:
.include <bsd.lib.mk>
.if ${MACHINE_CPUARCH} == "amd64"
+.if !exists(machine)
beforedepend ${OBJS}: machine
.endif
+.endif
OpenPOWER on IntegriCloud