Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland MAKE v4.0 - implicit rule syntax http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Implicit rule syntax
--------------------
An implicit rule starts with either a path or a period and implies a
target-dependent file relationship. Its main components are file
extensions separated by periods. The first extension belongs to the
dependent, the second to the target.

If implicit dependents are out-of-date with respect to the target or
if they don't exist, MAKE executes the commands associated with the
rule. MAKE updates explicit dependents before it updates implicit
dependents.

Implicit rules follow this basic syntax:

  [{source_dirs}].source_ext[{target_dirs}].target_ext:
     [commands]

  o  {source_dirs}      The directory of the dependent files.
                        Separate multiple directories with a semicolon.

  o  .source_ext        The dependent file-name extension.

  o  {target_dirs}      The directory of the target (executable) files.
                        Separate multiple directories with a semicolon.

  o  .target_ext        The target file-name extension. Macros are allowed.

  o  :                  Marks the end of the dependency line.

  o  commands           Any operating system command. Multiple commands
                        are allowed. Commands must be indented by one
                        space or tab.

If two implicit rules match a target extension but no dependent
exists, MAKE uses the implicit rule whose dependent's extension
appears first in the .SUFFIXES list.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson