summaryrefslogtreecommitdiff
path: root/remake.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2011-09-02 05:37:54 +0000
committerPaul Smith <psmith@gnu.org>2011-09-02 05:37:54 +0000
commit9a9f83e8b52a3923efc6b4cf8c8f444773a30953 (patch)
tree15457f8b817a5c16af8b6fe5772e4588d5d01771 /remake.c
parente4d5d434247b720a3f78e1f7279168b5e6bf628e (diff)
downloadgunmake-9a9f83e8b52a3923efc6b4cf8c8f444773a30953.tar.gz
Ensure that -n takes precedence over -t.
Patch from Michael Witten <mfwitten@gmail.com>
Diffstat (limited to 'remake.c')
-rw-r--r--remake.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/remake.c b/remake.c
index 97e3854..669eadc 100644
--- a/remake.c
+++ b/remake.c
@@ -1113,6 +1113,10 @@ touch_file (struct file *file)
if (!silent_flag)
message (0, "touch %s", file->name);
+ /* Print-only (-n) takes precedence over touch (-t). */
+ if (just_print_flag)
+ return 0;
+
#ifndef NO_ARCHIVES
if (ar_name (file->name))
return ar_touch (file->name);