NMAKE Always Evaluates Expressions in Square Brackets "[]"Last reviewed: January 24, 1995Article ID: Q63146 |
The information in this article applies to:
SUMMARYIn NMAKE, if you use the !IF directive with an expression in square brackets "[]", NMAKE evaluates the expression when it first reads the makefile, before it evaluates any dependency blocks or executes any commands.
MORE INFORMATIONNMAKE uses square brackets to run an application in an !IF expression. NMAKE is designed to run all specified programs when it first starts, it does not matter whether they are contained in a dependency block. NMAKE uses the values returned by the programs to evaluate the !IF expression. The following makefile displays this behavior:
test.exe: test.c !IF ( [check /f] < 3 ) cl test.c !ENDIFIn this example, NMAKE runs the CHECK program each time it evaluates the makefile. It does not matter that TEST.EXE is up to date with TEST.C or not.
|
Additional reference words: kbinf kbinf 1.10 1.20 1.30 1.40 1.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |