> Date: Mon, 25 Oct 2010 12:18:39 +0300
> From: Angel Tsankov <[email protected]>
> Newsgroups: gmane.comp.gnu.make.general
> CC: [email protected]
> 
> >> ./a.out: a.o
> >>    @echo $@  # Prints a.out instead of ./a.out
> >
> > Use $(@F) or $(notdir $@) ?
> 
> How is this supposed to expand to ./a.out rather than to a.out?

Sorry, I understood you backwards: I thought you wanted to _remove_
the leading directories.

So what is the difference between "a.out" and "./a.out" that makes you
need the latter?  Does this do what you want:

  $(addprefix $(dir $@),$(notdir $@))

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to