[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exact paths vs canonical paths
From: |
Eli Zaretskii |
Subject: |
Re: Exact paths vs canonical paths |
Date: |
Mon, 25 Oct 2010 06:02:05 -0400 |
> Date: Mon, 25 Oct 2010 12:18:39 +0300
> From: Angel Tsankov <address@hidden>
> Newsgroups: gmane.comp.gnu.make.general
> CC: address@hidden
>
> >> ./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 $@))
Re: Exact paths vs canonical paths, Oleksandr Gavenko, 2010/10/25