Programmer's WorkBench (pwb.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Build:inference Rule
                                             Up Contents Index Back
─────Programmer's WorkBench─────────────────────────────────────────────────
 
     The Build:inference rule defines the commands to create an
     intermediate file from a source file.
 
     Syntax
 
     Build:inference [compile] .<src>.<dst> <command> [<command>]...
 
     [compile]       In the case where there is more than one inference
                     rule for a given source extension (.<src>), the
                     inference rule tagged with 'compile' is the rule
                     that is used when you choose Compile File from the
                     Project menu.
 
                     Only one inference rule for each source extension
                     can be tagged as the compile rule.
 
     .<src>.<dst>    This inference rule specifies how to take a .<src>
                     file to a .<dst> file.
 
     <command>       The command or series of commands used to build a
                     .<dst> file from a .<src> file. Each <command> is
                     the name of a command defined in a Build:command
                     rule.
                     See: Build:command
 
     PWB uses the inference rule to create a description block for each
     source file in the project. Such a description block has the form:
 
          <file>.<dst> : <file>.<src> [<dependent>]...
               <command>
               [<command>]
               . . .
 
     PWB generates the dependency list by scanning for include
     directives.
     See: Build:include
 
     For each inference rule that is applied in the process of creating
     the project makefile, PWB also generates an NMAKE inference rule in
     the makefile as follows:
 
          .<src>.<dst> :
               <command>
               [<command>]
               . . .
 
     See
 
     How PWB Creates a Project Makefile
     Build:suffixes
     NMAKE Inference Rules
     NMAKE .SUFFIXES
                                    -♦-