summaryrefslogtreecommitdiff
path: root/remake.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2006-02-01 07:54:22 +0000
committerPaul Smith <psmith@gnu.org>2006-02-01 07:54:22 +0000
commit9b34eaadec583af16f36e66f534ea527c8f43904 (patch)
tree08930384ac32dd0cf2f910272ad38f76aaef2811 /remake.c
parent5e0f2a90ce647d0de2f66f8bb7d8bcf38eadd254 (diff)
downloadmake-9b34eaadec583af16f36e66f534ea527c8f43904.tar.gz
Various updates, mainly to the Windows port, from Eli Zaretskii and
Markus Maurhart.
Diffstat (limited to 'remake.c')
-rw-r--r--remake.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/remake.c b/remake.c
index 35005350..184e9101 100644
--- a/remake.c
+++ b/remake.c
@@ -159,7 +159,8 @@ update_goal_chain (struct dep *goals)
/* Set the goal's `changed' flag if any commands were started
by calling update_file above. We check this flag below to
decide when to give an "up to date" diagnostic. */
- g->changed += commands_started - ocommands_started;
+ if (commands_started > ocommands_started)
+ g->changed = 1;
/* If we updated a file and STATUS was not already 1, set it to
1 if updating failed, or to 0 if updating succeeded. Leave