Wildcard for files in sub-directory in NMAKE

我们两清 提交于 2019-12-11 13:04:26

问题


How could one make a wildcard dependency like boot/*.inc work in NMAKE?


回答1:


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

The on-line documentation for NMAKE provided by Microsoft is simply awful.

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.



来源:https://stackoverflow.com/questions/54041642/wildcard-for-files-in-sub-directory-in-nmake

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!