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.
Preprocessing Directives
                                             Up Contents Index Back
─────NMAKE──────────────────────────────────────────────────────────────────
 
     NMAKE preprocessing directives are similar to compiler
     preprocessing directives. NMAKE reads and executes preprocessing
     directives before processing the makefile as a whole.
 
     Preprocessing directives let you:
 
        ■ Turn options on or off    !CMDSWITCHES Directive
 
        ■ Display messages          !ERROR, !MESSAGE Directives
 
        ■ Include other files       !INCLUDE Directive
 
        ■ Undefine a macro          !UNDEF Directive
 
        ■ Execute conditionally     !IF..., !ENDIF Directives
                                    !ELSE... Directives
 
     During conditional preprocessing, you can run a command or program
     and use the return value in an expression.
     See: Expressions in Preprocessing
          Running a Program in Preprocessing
 
     Syntax Rules
 
     Preprocessing directives begin with an exclamation point (!),
     which must appear at the beginning of the line. Zero or more
     spaces or tabs can appear between the exclamation point and the
     directive name. You can use this space as indentation to make your
     file more readable. Preprocessing directives (and their keywords
     and operators) are not case sensitive.
                                    -♦-