Reputation: 595
How could one make a wildcard dependency like boot/*.inc
work in NMAKE?
Upvotes: 2
Views: 506
Reputation: 9972
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; three possible links are:
A good way to find them via certain search engines: "Mike Eddy" nmake MSGRIDA1.DOT filetype:pdf
Upvotes: 2