NMAKE Help (nmake.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.
Dash (-) Modifier
                                             Up Contents Index Back
─────NMAKE──────────────────────────────────────────────────────────────────
 
     Syntax  -[number ] command
 
     Turns off error checking for the command. Spaces and tabs can
     appear before <command>. By default, NMAKE halts when any command
     returns a nonzero exit code. This modifier tells NMAKE to ignore
     errors from the specified command.
 
     If <number> is specified, NMAKE stops if the exit code is greater
     than <number>. No spaces or tabs can appear between the dash and
     the number; they must appear between the number and the command.
     See: Exit Codes from Commands
 
     The /I option turns off error checking for all commands. The
     .IGNORE directive turns it off for part of the makefile.
     See: !CMDSWITCHES Directive
          /I Option
          .IGNORE Directive
 
     Example
 
          light.lst : light.txt
            -sample light.txt
            -5 sort light.txt
 
     In this description block, if the program SAMPLE returns a nonzero
     exit code, NMAKE does not halt. If SORT returns an exit code that
     is greater than 5, NMAKE stops.
                                    -♦-