Nmake output rules are limited to 1 depth

I noticed that nmake.exerestricting the search for my output rule to one missing file. I do not mention the problem on the Internet. Am I missing something?

$ cat makefile
.SUFFIXES: .a .b .d .e

all: abc.e

.ab:
        copy $ ** $ @

.bd:
        copy $ ** $ @

.de:
        copy $ ** $ @

$ touch abc.a

$ nmake
NMAKE: fatal error U1073: don't know how to make 'abc.e'
Stop

$ nmake -n abc.a
'abc.a' is up-to-date

$ nmake -n abc.b
        copy abc.a abc.b

$ nmake -n abc.d
NMAKE: fatal error U1073: don't know how to make 'abc.d'
Stop

The same Makefile does the following with GNU make:

$ make -n 
copy abc * abc.b
copy abc * abc.d
copy abc * abc.e
rm abc.b abc.d

Of course, the $**macro team is copynot that useful at GNU make either; ;-)

nmake.exe ? ? , ?

+2
1

. , , , . , . , .

GNU make . , make - , . , , . , "make" , .

nmake.exe : . , . , , nmake. 3 , , , " ", . , , script, .

+3

Source: https://habr.com/ru/post/1656574/


All Articles