Microsoft KB Archive/104648: Difference between revisions
(importing KB archive) |
m (Text replacement - """ to """) |
||
Line 65: | Line 65: | ||
<li><p>To inherit a small number of macros, define a macro on the command line for the recursive call:</p> | <li><p>To inherit a small number of macros, define a macro on the command line for the recursive call:</p> | ||
<pre class="fixed_text"> ALL: | <pre class="fixed_text"> ALL: | ||
NMAKE /f nextfile.mak | NMAKE /f nextfile.mak "MYMACRO=something" | ||
</pre> | </pre> | ||
<p>-or-<br /> | <p>-or-<br /> |
Latest revision as of 09:39, 20 July 2020
Article ID: 104648
Article Last Modified on 10/29/1999
APPLIES TO
- Microsoft Program Maintenance Utility 1.2
This article was previously published under Q104648
SYMPTOMS
The /V option for inheriting macro definitions in recursive calls to NMAKE in NMAKE version 1.2 does not work correctly. This option was removed from NMAKE versions 1.3 and later.
RESOLUTION
There are several different methods that can be used to inherit macros using NMAKE.
To inherit environment variables defined in a makefile, use the SET command to set the variable. For example, if you wanted to use a new library path and inherit that path in NEXTFILE.MAK, you could do the following:
NEWLIB=C:\MSVC\LIB;C:\MYLIBS;C:\MSVC\MFC\LIB ALL: set LIB=$(NEWLIB) NMAKE /f nextfile.mak
-or-
To inherit a small number of macros, define a macro on the command line for the recursive call:
ALL: NMAKE /f nextfile.mak "MYMACRO=something"
-or-
- Define the macros in the TOOLS.INI initialization file.
STATUS
Microsoft has confirmed this to be a problem with NMAKE version 1.2. The option was removed from later versions of NMAKE.
Additional Reference Words: 1.20 buglist1.20
Keywords: kb16bitonly KB104648