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: Paul D. Smith
Subject: Re: make removes trailing '/' when dir does not exists
Date: Tue, 11 Apr 2006 14:21:46 -0400

%% Sam Ravnborg <address@hidden> writes:

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

  >> Consider following Makefile:
  >> 
  >> .PHONY: $(MAKECMDGOALS)
  >> 
  >> $(MAKECMDGOALS):
  >> @echo $@

  >> 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.

It's definitely not a feature.

So, I suppose you could classify it as a bug :-).  There's already a bug
reported that might be slightly related, where the trailing "/" is
stripped from targets/prerequisites when they are added to $@ or $<.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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