]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* src/main.c (main): Install suffix rules near pattern updates
authorDmitry Goncharov <dgoncharov@users.sf.net>
Tue, 21 Feb 2023 05:04:13 +0000 (00:04 -0500)
committerPaul Smith <psmith@gnu.org>
Tue, 21 Feb 2023 05:04:13 +0000 (00:04 -0500)
src/main.c

index e62aee60cf7bd6c43d191585a25a0b1bb0eacb47..a9d3a644057035af856425ee1b69eaafdd19312d 100644 (file)
@@ -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