> Cc: bug-make@gnu.org
> From: Paul Eggert <egg...@cs.ucla.edu>
> Date: Fri, 29 Sep 2017 12:57:43 -0700
> 
> On 09/29/2017 01:06 AM, Eli Zaretskii wrote:
> > Are there other situations where Make uses "foo/" and expects
> > that to mean that 'foo' is a directory?
> 
> It's pretty much any situation where Make looks for file names that the 
> user specifies. As a trivial example, the Makefile rule:
> 
> foo/:; mkdir -p $@
> 
> should fail if "foo" exists as a regular file, since Make will invoke 
> mkdir and mkdir will fail. If Make strips the trailing / before testing 
> the existence of "foo", Make will incorrectly skip the mkdir and so will 
> not guarantee that foo/ is a directory.

OK, and where is the support for that implemented in GNU Make?  I'd
like to have a look at the code.

Thanks.

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to