help-make
[Top][All Lists]
Advanced

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

Re: Pulling parts from a filename.


From: Todd Showalter
Subject: Re: Pulling parts from a filename.
Date: Wed, 9 Jun 2010 20:35:32 -0400

On Wed, Jun 9, 2010 at 8:06 PM, Philip Guenther <address@hidden> wrote:

>>    Am I missing something?
>
> Yes: second expansion:
>
> .SECONDEXPANSION:
> %.fnt: $$(basename $$(subst _,.,$$*)).otf
>        fontgen -p $(patsubst .%,%,$(suffix $(subst _,.,$*))) $< $@
>
> The other tricky thing there is that $(suffix) and $(basename) do
> something that $(patsubst) can't.

    Ah. thanks.  I knew there had to be a more elegant way.

                                                 Todd.

-- 
 Todd Showalter, President,
 Electron Jump Games, Inc.



reply via email to

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