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 - explicit rule syntax http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Explicit rule syntax
--------------------
Explicit rules are instructions to MAKE that specify exact file names.
The explicit rule names one or more targets followed by one or two
colons. One colon means one rule is written for the target; two colons
mean that two or more rules are written for the target.

Explicit rules follow this syntax:

  target [target...]:[:][{path}] [dependent[s]...]
        [commands]

 o  target      The name and extension of the file to be updated
                ("target" must be at the start of the line--no spaces or
                tabs are allowed). One or more targets must be
                separated by spaces or tabs. Don't use a target's name
                more than once in the target position of an explicit
                rule in a makefile.

 o  path        A list of directories, separated by semicolons and
                enclosed in braces, that points to the dependent files.

 o  dependent   The file (or files) whose date and time MAKE checks to
                see if it is newer than "target" (dependent must be
                preceded by a space). If a dependent file also appears
                in the makefile as a target, MAKE updates or creates
                the target file before using it as a dependent for
                another target.

 o  commands    Any operating system command. Multiple commands are
                allowed in a rule. Commands must be indented by at
                least one space or tab.

If the dependency or command continues on to the next line, use the
backslash (\) at the end of the line after a target or a dependent
file name. For example:

  MYSOURCE.EXE: FILE1.OBJ\
              FILE2.OBJ\
              FILE3.OBJ
     bcc file1.obj file2.obj file3.obj

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