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.
Commands
                                             Up Contents Index Back
─────NMAKE──────────────────────────────────────────────────────────────────
 
     A commands block is specified on the first line following a
     dependency line or inference rule:
 
          targets : [dependents]
            [commands]
 
          .fromext.toext:
            commands
 
     The commands block lists the commands to run if the dependency is
     out-of-date. You can specify any command or program that can be
     executed from a DOS command line (with a few exceptions, such as
     PATH). Multiple commands can appear in a commands block, each on
     its own line.
     See: Command Syntax
          Description Blocks
          Inference Rules
 
     Command modifiers provide extra control over the commands.
     See: Command Modifiers
 
     NMAKE stops execution if it executes a command or program that
     encounters an error and returns a nonzero exit code.
     See: Exit Codes from Commands
 
     You can use a special syntax in commands to represent components
     of the name of the first dependent file.
     See: Filename-Parts Syntax
 
     You can create an inline file in a command. You can use an inline
     file in commands in the same way as any filename.
     See: Inline Files
 
     NMAKE displays each command line before it executes it, unless you
     specify one of the following:
          !CMDSWITCHES Directive
          At-Sign (@) Modifier
          .SILENT Directive
          /S Option
                                    -♦-