开发者

Nmake: Placeholder/Wildcards in Targets

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜