I'm using IBM nmake. During processing of the main makefile, I would like to import values set by an external .cmd, let's name it queryvar.cmd. These vars should be used in pathnames to call e.g. an OS/2 copy command.
ALL:
# queryvar.cmd should set DIR1
@queryvar.cmd
copy $(DIR1)\sub1\file.1 G:\
How can a value be passed from queryvar.cmd to the running nmake, so that it can be used as $(DIR1) in the example above?
It works well when setting env vars before calling nmake. But in this case nmake is already started. It won't matter for me if queryvar.cmd really sets env vars or just returns the value of one env var only.