automake
[Top][All Lists]
Advanced

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

Re: using VPATH in depend2.am?


From: Harald Dunkel
Subject: Re: using VPATH in depend2.am?
Date: Fri, 21 Oct 2005 22:58:44 +0200
User-agent: Debian Thunderbird 1.0.2 (X11/20050402)

Stepan Kasal wrote:
> 
> Your proposal looks good, except I think it might be better to use single
> quotes around $(VPATH).
> And the quoting around $d, which I introduced, is redundant.
> 
> That yields:
> 
>       `IFS=:; x=':$(VPATH)'; \
>       for d in $$x; do \
>               test -n $$d && d=$$d/; \
>               test -f $${d}%SOURCE% && echo $$d && break;
>       done`%SOURCE%
> 

I like this version. But if you look at the original depend2.am
in am 1.9.6, there were some tics around %SOURCES%, too, i.e.

        `IFS=:; x=':$(VPATH)'; \
        for d in $$x; do \
                test -n $$d && d=$$d/; \
                test -f $${d}'%SOURCE%' && echo $$d && break;
        done`'%SOURCE%'


Rgards

Harri




reply via email to

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