* src/main.c (main): Install suffix rules near pattern updates

This commit is contained in:
Dmitry Goncharov 2023-02-21 00:04:13 -05:00 committed by Paul Smith
parent 8ddb628927
commit 9b6fedef1c

View 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