From 9a9f83e8b52a3923efc6b4cf8c8f444773a30953 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Fri, 2 Sep 2011 05:37:54 +0000 Subject: Ensure that -n takes precedence over -t. Patch from Michael Witten --- remake.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'remake.c') 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); -- cgit v1.2.3