On 24/05/17 21:25, Edward Welbourne wrote:
Jonny Grant (24 May 2017 10:15)
So if missingfile.mak was generated? Would make then read it in and
process it?
Yes, it would - if it can find a rule that lets it make the file it was
told to use, it'll exercise that rule and then restart itself. On this
restart, it would find the file exists and get on with using it.
I guess I thought it would just be better for make to halt and exit
after that line
make: missingfile.mak: No such file or directory
When there *is* a way for it to generate the missing file, generating it
and restarting (after producing this warning) is surely a better
response - it lets make succeed in doing what the user asked for,
Eddy.
Hi Eddy
In that successful case, would the "No such file or directory" message
not be visible?
BTW, I guess it is stat@() or open() rather than opendir(), if ENOENT is
in errno, could we just output "No such file"? ENOENT is a bad, because
it is used for directories too
Jonathan
_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make