aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-01-31 22:45:54 -0600
committerRob Landley <rob@landley.net>2019-01-31 22:45:54 -0600
commit46c63ae43a89a340354493ee96a4b2b5fdf87b8d (patch)
tree592c768b5b0991545630715ced3870ede8a04aa4 /scripts
parenta1cfd09079990ad9be0be45cb48be363dfc10e54 (diff)
downloadtoybox-46c63ae43a89a340354493ee96a4b2b5fdf87b8d.tar.gz
Tweak build dependencies: rebuild toys/*/*.c when .o newer than .config.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/make.sh5
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 &