httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject (flood) Environment problems with floodenv.bat in
Date Fri, 31 Jan 2003 20:47:17 GMT
Hi all,

I'm seeing a problem in the Windows build of flood with
The makefile generates a batch file that sets up various variables.
In the command block of some targets, we call the batch file before
invoking a tool like nmake, MSDEV, etc.  For example:
    msdev flood.dsw <... additional stuff ...>
It looks like the intent is for floodenv.bat to set the environment
variables and then have subsequent commands use those variables.
I don't see this behavior occurring.

If you run floodenv.bat before using the, then all is okay.
I suspect I haven't had problems until recently because I was running
the floodenv.bat manually in my command prompt in order to build with
the MSDEV IDE.  To see the problem you need to make sure you don't call
floodenv.bat before using

I've included a sample NMAKE makefile and some output to demonstrate
the problem.  The recursive NMAKE isn't picking up the setting of ENVVAR
from the env.bat created.

I have a fix in mind, which I'll send out when it's ready.

  nmake -f env.mak test-env
Sample output:

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

ENVVAR is empty or unset.
        echo set ENVVAR=SOMETHING> env.bat

        nmake -nologo -f env.mak
ENVVAR is empty or unset.

# --- Beginning of Makefile ---
!if "$(ENVVAR)" == ""
!message ENVVAR is empty or unset.
!message Got ENVVAR: $(ENVVAR)


    echo set ENVVAR=SOMETHING> env.bat
    nmake -nologo -f env.mak
# --- End of Makefile ---

View raw message