From 9b6fedef1ce34391e60cc96d1cb52b9884a8339a Mon Sep 17 00:00:00 2001 From: Dmitry Goncharov Date: Tue, 21 Feb 2023 00:04:13 -0500 Subject: * src/main.c (main): Install suffix rules near pattern updates --- src/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index e62aee60..a9d3a644 100644 --- a/src/main.c +++ b/src/main.c @@ -2273,16 +2273,16 @@ main (int argc, char **argv, char **envp) define_makeflags (0); - /* Define the file rules for the built-in suffix rules. These will later - be converted into pattern rules. */ - - install_default_suffix_rules (); - /* Make each 'struct goaldep' point at the 'struct file' for the file depended on. Also do magic for special targets. */ snap_deps (); + /* Define the file rules for the built-in suffix rules. These will later + be converted into pattern rules. */ + + install_default_suffix_rules (); + /* Convert old-style suffix rules to pattern rules. It is important to do this before installing the built-in pattern rules below, so that makefile-specified suffix rules take precedence over built-in pattern -- cgit v1.2.1