diff options
author | Roland McGrath <roland@redhat.com> | 1993-10-14 22:23:39 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1993-10-14 22:23:39 +0000 |
commit | 88054f8ad3a91a77a36ecb357696729c6a413d32 (patch) | |
tree | d631936e81c54f1181aa687e42d1d6f6127e0a97 | |
parent | f5e7fb8ea0722ecbf72efab72d0e3af7042efba4 (diff) | |
download | gunmake-88054f8ad3a91a77a36ecb357696729c6a413d32.tar.gz |
Formerly main.c.~98~
-rw-r--r-- | main.c | 21 |
1 files changed, 16 insertions, 5 deletions
@@ -747,6 +747,14 @@ main (argc, argv, envp) 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_automatic_variables (); @@ -785,17 +793,20 @@ main (argc, argv, envp) 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. But in that case, built-in pattern rules were in the chain before user-defined ones, so they matched first. */ install_default_implicit_rules (); - /* Convert old-style suffix rules to pattern rules. */ - - convert_to_pattern (); - /* Compute implicit rule limits. */ count_implicit_rule_limits (); |