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: Robert Boehne
Subject: Re: SGI mode depcomp breaks when '.' appears in source filenames twice
Date: Fri, 06 Apr 2001 09:19:38 -0500

Thomas Dickey wrote:
> 
> On Thu, Apr 05, 2001 at 10:32:02PM -0500, Raja R Harinath wrote:
> > 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 ':'.
> 
> it sounds as if you're saying that
> 
> rule ::
>         action
> 
> is GNU-make specific, which is not true, of course.
> 
> --
> Thomas E. Dickey <address@hidden>
> http://dickey.his.com
> ftp://dickey.his.com

Thomas:

The question here applies to only the output of the SGI compiler's
automatic dependency generation, and perhaps other compilers that
use the same scheme(?).  If we had source for the SGI preprocessor
we could find out for certain, but I doubt that '::' will appear
anywhere in its output.
  I have attached a patch, made with the suggestions by Hari.
Unfortunately it wasn't made with cvs as I'm currently
in the midst of an outage. :(

Robert

-- 
Robert Boehne             Software Engineer
Ricardo Software   Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email:  address@hidden
--- depcomp     Thu Apr  5 18:20:41 2001
+++ /usr/local/share/automake/depcomp   Wed Apr  4 10:58:22 2001
@@ -131,7 +131,7 @@
     # lines with more than a fixed number of characters (4096 in
     # IRIX 6.2 sed, 8192 in IRIX 6.5).
     tr ' ' '
-' < "$tmpdepfile" | sed 's/^.*\.o://' | tr '
+' < "$tmpdepfile" | sed 's/^[^\.]*\.o://' | tr '
 ' ' ' >> $depfile
 
     tr ' ' '

reply via email to

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