From 46c63ae43a89a340354493ee96a4b2b5fdf87b8d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 31 Jan 2019 22:45:54 -0600 Subject: Tweak build dependencies: rebuild toys/*/*.c when .o newer than .config. --- scripts/make.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/make.sh b/scripts/make.sh index 388af651..82a23c9c 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -297,9 +297,10 @@ do OUT="generated/obj/${X%%.c}.o" LNKFILES="$LNKFILES $OUT" - # $LIBFILES doesn't need to be rebuilt if newer than .config, $TOYFILES does + # $LIBFILES doesn't need to be rebuilt if older than .config, $TOYFILES does + # ($TOYFILES contents can depend on CONFIG symbols, lib/*.c never should.) - [ "$OUT" -nt "$i" ] && [ -z "$CLICK" -o "$OUT" -nt "$KCONFIG_CONFIG" ] && + [ "$OUT" -nt "$i" ] && [ -z "$CLICK" -o "$OUT" -ot "$KCONFIG_CONFIG" ] && continue do_loudly $BUILD -c $i -o $OUT & -- cgit v1.2.3