【发布时间】:2011-05-27 02:20:10
【问题描述】:
在 GNU Make 的 makefile 中,我使用这个习惯用法来测试文件是否存在:
static:
ifeq ($(wildcard $(FileName)),)
# do something when the file doesn't exist
else
# do something different when it does
endif
但它在 NMake (fatal error U1000: syntax error : ')' missing in macro invocation) 中不起作用。我该如何更换它?如果替换在两个构建系统中都有效,那将是完美的。
【问题讨论】: