%% Sam Ravnborg <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make