I already have a Makefile to build my software on Linux. But now i need 开发者_运维技巧a .mak file to build on Windows.
However, it's not possible to use Placeholders in Nmake like this way:
build: mytarget_foo
#target build
mytarget_%:
#target mytarget_% to match mytarget_foo
How to use placeholders in Nmake? Thanks in advance.
EDIT: console output:
'MAKE : fatal error U1073: don't know how to make 'mytarget_foo Stop.
Use the asterisk. Here's the doc.
mytarget_*:
# target mytarget_* to match mytarget_foo
精彩评论