summaryrefslogtreecommitdiff
path: root/remake.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2003-03-25 00:15:25 +0000
committerPaul Smith <psmith@gnu.org>2003-03-25 00:15:25 +0000
commit955899ef770fc289febe3f186e4533e09baa7076 (patch)
tree4f3b49e3a7c2acba5cb614fdcf118814db022843 /remake.c
parent4068c5e4a3eb0f47ec3cb4ee4fad5dd2edb9de6f (diff)
downloadgunmake-955899ef770fc289febe3f186e4533e09baa7076.tar.gz
Commit fix for bug #1418.
Upgrade to require autoconf 2.56. Fix a pathological performance hit substituting in large values with lots of words.
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 e6dac0f..a13a9a4 100644
--- a/remake.c
+++ b/remake.c
@@ -748,7 +748,8 @@ notice_finished_file (struct file *file)
have_nonrecursing:
if (file->phony)
file->update_status = 0;
- else
+ /* According to POSIX, -t doesn't affect targets with no cmds. */
+ else if (file->cmds != 0)
{
/* Should set file's modification date and do nothing else. */
file->update_status = touch_file (file);