I am new to nmake and I need to change the construction of the script. I want to execute a command and commit the result to a variable, which will then be used throughout the script. However, when I try to use the shell command, I get the following error message:
makefile(4) : fatal error U1000: syntax error : ')' missing in macro invocation
Stop.
I put together one line of script to test the shell command.
Makefile:
CMDRESULT = $(shell hostname)
all:
echo $(CMDRESULT)
The nmake version is used here:
>nmake /?
Microsoft (R) Program Maintenance Utility Version 11.00.60610.1
Copyright (C) Microsoft Corporation. All rights reserved.
Does nmake support shell command? Is there another option in nmake to execute a command and capture the result?
source
share