【发布时间】:2010-12-22 12:12:34
【问题描述】:
我的 Makefile 中有一个目标 test,我的项目中有一个名为 test 的目录。在 GNU Make 中,我可以像这样声明它是假的:
.PHONY: all compile test clean docs static
是否可以在 NMake 中做同样的事情?根据http://www.bell-labs.com/project/nmake/tutorial/s6.html,我需要做
test: .VIRTUAL
但它不起作用:
F:\SomePath>nmake test /f msvc.mk
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
NMAKE : fatal error U1073: don't know how to make '.VIRTUAL'
Stop.
【问题讨论】: