NMAKE子目录中文件的通配符 [英] Wildcard for files in sub-directory in NMAKE
问题描述
如何在NMAKE中使像boot/*.inc
这样的通配符依赖项工作?
How could one make a wildcard dependency like boot/*.inc
work in NMAKE?
推荐答案
这对我来说适用于VS 2017:
This works for me, with VS 2017:
>type makefile
mytarget : boot\*.inc
!@echo $?
>dir/b boot
one.inc
two.inc
>nmake
boot\one.inc
boot\two.inc
Microsoft提供的NMAKE在线文档简直糟透了.
The on-line documentation for NMAKE provided by Microsoft is simply awful.
相比之下,旧的59页PDF文档标题为第16章:使用NMAKE管理项目要优越得多.似乎同意当前的在线版本(勘误表会很不错!).但是,通过Google很难找到它.两个链接是 http://www.engr.iupui.edu/~dskim /downloadable/reference_Nmake.pdf 和 https://www .scribd.com/document/19344397/Managing-Projects-With-NMAKE .
In contrast, the older 59-page PDF document entitled Chapter 16: Managing Projects with NMAKE is vastly superior. It appears to agree with the current online version (an errata would be nice!). But it is surprisingly hard to find via Google; two links are http://www.engr.iupui.edu/~dskim/downloadable/reference_Nmake.pdf and https://www.scribd.com/document/19344397/Managing-Projects-With-NMAKE.
这篇关于NMAKE子目录中文件的通配符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!