mirror of
https://github.com/mirror/make.git
synced 2025-01-31 23:00:16 +08:00
Formerly main.c.~98~
This commit is contained in:
parent
f5e7fb8ea0
commit
88054f8ad3
21
main.c
21
main.c
@ -747,6 +747,14 @@ main (argc, argv, envp)
|
|||||||
|
|
||||||
set_default_suffixes ();
|
set_default_suffixes ();
|
||||||
|
|
||||||
|
/* Define the file rules for the built-in suffix rules. These will later
|
||||||
|
be converted into pattern rules. We used to do this in
|
||||||
|
install_default_implicit_rules, but since that happens after reading
|
||||||
|
makefiles, it results in the built-in pattern rules taking precedence
|
||||||
|
over makefile-specified suffix rules, which is wrong. */
|
||||||
|
|
||||||
|
install_default_suffix_rules ();
|
||||||
|
|
||||||
/* Define some internal and special variables. */
|
/* Define some internal and special variables. */
|
||||||
|
|
||||||
define_automatic_variables ();
|
define_automatic_variables ();
|
||||||
@ -785,17 +793,20 @@ main (argc, argv, envp)
|
|||||||
|
|
||||||
snap_deps ();
|
snap_deps ();
|
||||||
|
|
||||||
/* Install the default implicit 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
|
||||||
|
rules. */
|
||||||
|
|
||||||
|
convert_to_pattern ();
|
||||||
|
|
||||||
|
/* Install the default implicit pattern rules.
|
||||||
This used to be done before reading the makefiles.
|
This used to be done before reading the makefiles.
|
||||||
But in that case, built-in pattern rules were in the chain
|
But in that case, built-in pattern rules were in the chain
|
||||||
before user-defined ones, so they matched first. */
|
before user-defined ones, so they matched first. */
|
||||||
|
|
||||||
install_default_implicit_rules ();
|
install_default_implicit_rules ();
|
||||||
|
|
||||||
/* Convert old-style suffix rules to pattern rules. */
|
|
||||||
|
|
||||||
convert_to_pattern ();
|
|
||||||
|
|
||||||
/* Compute implicit rule limits. */
|
/* Compute implicit rule limits. */
|
||||||
|
|
||||||
count_implicit_rule_limits ();
|
count_implicit_rule_limits ();
|
||||||
|
Loading…
Reference in New Issue
Block a user