summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Goncharov <dgoncharov@users.sf.net>2023-02-21 00:04:13 -0500
committerPaul Smith <psmith@gnu.org>2023-02-21 00:04:13 -0500
commit9b6fedef1ce34391e60cc96d1cb52b9884a8339a (patch)
tree55ac07bc5b259c8c3e7bebc8d1be9a2c0459e4fa
parent8ddb628927f8edbaa57849c1ecefd36ada371dae (diff)
downloadmake-git-9b6fedef1ce34391e60cc96d1cb52b9884a8339a.tar.gz
* src/main.c (main): Install suffix rules near pattern updates
-rw-r--r--src/main.c10
1 files 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