开发者

Nmake: Placeholder/Wildcards in Targets

开发者 https://www.devze.com 2023-03-05 11:07 出处:网络
I already have a Makefile to build my software on Linux. But now i need 开发者_运维技巧a .mak file to build on Windows.

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

精彩评论

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