X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=build%2Fredo_scripts%2Fredo-ifchange;fp=build%2Fredo_scripts%2Fredo-ifchange;h=58402bd5c7a9f25d0cb8063d5e79f36aedb90b88;hb=326fbfe3993b4441f5ccbe97cd9730d3469e9c59;hp=bdec2d4dae215b11ab69c6d3451f0317762fed95;hpb=28b8b4234e395c3fdc4800e5cfb3dcd70a15cadf;p=plomrogue diff --git a/build/redo_scripts/redo-ifchange b/build/redo_scripts/redo-ifchange index bdec2d4..58402bd 100755 --- a/build/redo_scripts/redo-ifchange +++ b/build/redo_scripts/redo-ifchange @@ -70,6 +70,10 @@ _dependencies_ne_uptodate() { _target_uptodate() { target=$1 + # If a target is a top-level target, it is not up to date. + if [ -z "$REDO_TARGET" ]; then + return 1 + fi # If a target does not exist, it is not up to date. if [ ! -e "$target" ]; then _echo_debug_message "$target does not exist."