NMAKE Help (nmake.hlp) (Table of Contents; Topic list)
Running a Program in Preprocessing
                                             Up Contents Index Back
─────NMAKE──────────────────────────────────────────────────────────────────
 
     NMAKE can run programs or commands during preprocessing of the
     makefile. The command is executed, then the command specification
     is replaced with the command's exit code. You can use this value
     in an expression to control preprocessing.
 
     Specify the command, including any arguments, in square brackets:
 
          [command]
 
     You can use macros in the <command>. NMAKE expands the macro
     before executing the command.
 
     Example
 
          !IF [c:\util\checkdsk] != 0
          !  ERROR Not enough disk space; NMAKE terminating.
          !ENDIF
 
     This set of preprocessing commands tests the space on disk before
     continuing the NMAKE session.
                                    -♦-