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 <[EMAIL PROTECTED]> > 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: [EMAIL PROTECTED]
--- 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 ' ' '