NMAKE Help (nmake.hlp) (Table of Contents; Topic list)
Reusing an Inline File
                                             Up Contents Index Back
─────NMAKE──────────────────────────────────────────────────────────────────
 
     After an inline file is created, you can use it more than once. To
     reuse an inline file in the command in which it is created, you
     must supply a filename for the file where it is defined and first
     used. You can then reuse the name later in the same command.
 
     You can also reuse an inline file in subsequent commands in the
     same description block or elsewhere in the makefile. Be sure that
     the command that creates the inline file executes before all
     commands that use the file. Regardless of whether you specify KEEP
     or NOKEEP, NMAKE keeps the file for the entire NMAKE session.
 
     Example
 
          OBJECTS = add.obj sub.obj mul.obj div.obj
          math.lib : $(OBJECTS)
            LIB math.lib @<<lib.lrf
          -+$(?: = &^
          -+)
          listing;
          <<
            copy lib.lrf \projinfo\lib.lrf
 
     This makefile creates a temporary LIB response file named LIB.LRF.
     The response file tells LIB which library to use, the commands to
     execute, and the name of the listing file to produce. The inline
     file that is created contains the following:
 
          -+add.obj &
          -+sub.obj &
          -+mul.obj &
          -+div.obj
          listing;
 
     The second command in the descripton block tells NMAKE to copy the
     response file to another directory.
                                    -♦-