I have a serious issue. I am trying to convert a complex unix makefile to visual C++ nmake makefile.

nmake throws fatal error:
Microsoft (R) Program Maintenance Utility Version 7.00.9466
Copyright (C) Microsoft Corporation. All rights reserved.

makefile(33) : fatal error U1000: syntax error : ')' missing in macro invocation
Stop.


when encountering this line in my makefile:

client.exe: client.obj $(subst .idl, .obj, $(IDL_FILES)) $(DEPS)
$(LD) $(CXXFLAGS) $(LDFLAGS) $(LDLIBS) $(subst .idl,.obj,$(IDL_FILES)) $< -o $@


it traps on subst macro. Is this supported in nmake? If not then what is nmake equivalent?