From 326fbfe3993b4441f5ccbe97cd9730d3469e9c59 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 10 Oct 2014 00:16:55 +0200
Subject: [PATCH] Update erlehmann's redo scripts.

---
 build/redo_scripts/redo-ifchange | 4 ++++
 1 file changed, 4 insertions(+)

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."
-- 
2.30.2