[Tfug] Re: changing GNU make

Chris Hilton tfug@tfug.org
Fri Jul 12 14:53:01 2002


On Fri, 12 Jul 2002 12:58:12 -0700
"Jim Secan" <jim@nwra-az.com> wrote:

> At 12:50 PM 07/12/02 -0700, Andre wrote:
> >> Aren't GNU make's internal rules hardwired?
> 
> Can someone out there verify this?  It seems like this is somewhat
> limiting if you can't adjust the global rules in some fashion.
> 
> Jim

'Hardwired' and 'open source' don't really go together.

 The default suffix list is: .out, .a, .ln, .o, .c, .cc, .C, .p, .f, .F,
.r, .y, .l, .s, .S, .mod, .sym, .def, .h, .info, .dvi, .tex, .texinfo,
.texi, .txinfo, .w, .ch .web, .sh, .elc, .el.  If you want to add to
this list (without altering the sources and recompiling make) you must
write a rule for .SUFFIXES like Brian mentioned in an earlier post, ie:
.SUFFIXES: .f77 .f90 .f95 .etc.

'info make' is chock full of this kind of stuff.  The .SUFFIXES part,
I'll leave it to you to figure out where to find the default suffix
list.  Hint: read my first sentence carefully : )

-C-