diff options
author | Rob Landley <rob@landley.net> | 2019-01-31 22:45:54 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-01-31 22:45:54 -0600 |
commit | 46c63ae43a89a340354493ee96a4b2b5fdf87b8d (patch) | |
tree | 592c768b5b0991545630715ced3870ede8a04aa4 /scripts | |
parent | a1cfd09079990ad9be0be45cb48be363dfc10e54 (diff) | |
download | toybox-46c63ae43a89a340354493ee96a4b2b5fdf87b8d.tar.gz |
Tweak build dependencies: rebuild toys/*/*.c when .o newer than .config.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/make.sh | 5 |
1 files changed, 3 insertions, 2 deletions
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 & |