aboutsummaryrefslogtreecommitdiff
path: root/tools/build
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2024-03-18 17:06:41 +0000
committerBrooks Davis <brooks@FreeBSD.org>2024-03-18 18:52:42 +0000
commitd9108adbc0393a58d52cd9275bf582b02199427f (patch)
treea92df9ad53f44698035b42fc4821ceb3baa8d091 /tools/build
parente29be07861173f87b2dd46db1d0c7cbcf72d4ad0 (diff)
downloadsrc-d9108adbc0393a58d52cd9275bf582b02199427f.tar.gz
src-d9108adbc0393a58d52cd9275bf582b02199427f.zip
lib{c,sys}: really fix incremental builds
Reported by: andrew Fixes: a650ec0e55a9 lib{c,sys}: fix incremental builds
Diffstat (limited to 'tools/build')
-rwxr-xr-xtools/build/depend-cleanup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/build/depend-cleanup.sh b/tools/build/depend-cleanup.sh
index e327ee40a6df..71988e526369 100755
--- a/tools/build/depend-cleanup.sh
+++ b/tools/build/depend-cleanup.sh
@@ -222,8 +222,8 @@ clean_dep lib/libc statfs c
# 20240308 e6ffc7669a56 Remove pointless MD syscall(2)
# 20240308 0ee0ae237324 Remove pointless MD syscall(2)
# 20240308 7b3836c28188 Remove pointless MD syscall(2)
-if [ ${MACHINE} != i386 -a -f "$OBJTOP"/lib/libsys/.depend.syscall.o && \
- grep -eq 'libsys/[^ /]*/syscall.S' "$OBJTOP"/lib/libsys/.depend.syscall.*; then
+if [ ${MACHINE} != i386 -a -f "$OBJTOP"/lib/libsys/.depend.syscall.o ] && \
+ grep -q -e 'libsys/[^ /]*/syscall.S' "$OBJTOP"/lib/libsys/.depend.syscall.*; then
echo "Removing stale <arch>/syscall.S depends"
clean_dep lib/libsys syscall S
clean_dep lib/libc syscall S