我在我的Makefile中有一個目標test
,在我的項目中有一個名爲test
的目錄。在GNU Make中,我可以聲明它像這樣假:NMake .PHONY模擬
.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.
我實際上已經找到了這個網頁,但認爲應該還有一個辦法做到這一點,只是不掛:)也許不是。 – 2010-12-22 12:34:30