automake
[Top][All Lists]
Advanced

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

Re: SGI mode depcomp breaks when '.' appears in source filenames twice


From: Raja R Harinath
Subject: Re: SGI mode depcomp breaks when '.' appears in source filenames twice
Date: 05 Apr 2001 22:32:02 -0500
User-agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/21.0.100

Hi,

Alexandre Oliva <address@hidden> writes:
> On Apr  5, 2001, Raja R Harinath <address@hidden> wrote:
> > Robert Boehne <address@hidden> writes:
> >> sed 's/^[^\.]*\.o://' | tr '
> 
> > Try changing that to
> 
> >   sed 's/^.*\.o://' | tr '
> 
> > This should be safe.  I don't see why the original tried to avoid
> > '.'s.  The regexp is limited to the first ':' -- so the '.*' cannot
> > swallow any more of the line.
> 
> Perhaps `[^:]*', just to be on the safe side?

Well -- the whole idea is to remove the rule targets.  I know of only
one use of multiple colons on a line -- in GNU make.  Even there,
everything before a ':' is a rule target.  My comment "limited to the
first ':'" may not be accurate, but I don't see any advantage to not
always removing everything before a ':'.

- Hari
-- 
Raja R Harinath ------------------------------ address@hidden
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash



reply via email to

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