Skip to content
Snippets Groups Projects
  • Tobias S. Josefowitz's avatar
    b4b5c450
    [build] Use pattern rules for rules with additional deps · b4b5c450
    Tobias S. Josefowitz authored
    Suffix rules (according to GNU make at least) cannot have dependencies
    of their own, old versions of GNU make ignored such dependencies,
    current versions of GNU make warn about them (and ignore them), and
    future versions of GNU make are announced to treat them as non-suffix
    rules, i.e.
    
        .c.o: foo.h
    
    would describe a rule to build .c.o from foo.h.
    
    GNU make claims that pattern rules are what needs to be used in case
    such rules have dependencies, so we shall give that a try.
    b4b5c450
    History
    [build] Use pattern rules for rules with additional deps
    Tobias S. Josefowitz authored
    Suffix rules (according to GNU make at least) cannot have dependencies
    of their own, old versions of GNU make ignored such dependencies,
    current versions of GNU make warn about them (and ignore them), and
    future versions of GNU make are announced to treat them as non-suffix
    rules, i.e.
    
        .c.o: foo.h
    
    would describe a rule to build .c.o from foo.h.
    
    GNU make claims that pattern rules are what needs to be used in case
    such rules have dependencies, so we shall give that a try.