bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make removes trailing '/' when dir does not exists


From: Sam Ravnborg
Subject: Re: make removes trailing '/' when dir does not exists
Date: Mon, 10 Apr 2006 19:42:09 +0200
User-agent: Mutt/1.5.11

Any reply for this one?
I still do not get the rationale behind it.
A quick (very quick) grep in the make soruce did not tell me anything.

        Sam

On Wed, Apr 05, 2006 at 11:57:51PM +0200, Sam Ravnborg wrote:
> This is with GNU Make 3.80
> 
> Consider following Makefile:
> 
> .PHONY: $(MAKECMDGOALS)
> 
> $(MAKECMDGOALS):
>       @echo $@
> 
> As expected it prints out the targetname when supplied with a filename
> as parameter (no matter if the file exists or not):
> make foo.c => foo.c
> 
> When I try specifying an existing directory then is it also ok:
> make foo/ => foo/
> 
> When I try to specify a non-existing directory it no longer works:
> make bar/ => make: *** No rule to make target `bar/'.  Stop.
> 
> Digging a bit further I realised that make will drop the final '/' for
> non-existing directiories but I fail to see why it does so.
> 
> A bug or a feature?
> 
>       Sam
> 
> 
> _______________________________________________
> Bug-make mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-make




reply via email to

[Prev in Thread] Current Thread [Next in Thread]