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.
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.
-♦-