Re: Makefiles compatible with both BSD and GNU make?

2005-03-16 Thread David Kelly
On Wed, Mar 16, 2005 at 02:50:17PM -0600, Dan Nelson wrote: > > FreeBSD's make understands the gnu-style include syntax with no leading > dot, even though it's undocumented (grep for SYSVINCLUDE in the > source). Automake is the usual way around compatibility issues; it has > its own conditional

Re: Makefiles compatible with both BSD and GNU make?

2005-03-16 Thread Dan Nelson
In the last episode (Mar 16), David Kelly said: > I got the silly idea that I want one Makefile to work with both BSD > and GNU makes. Silly me. Fairly simple Makefiles work but when > expanding my Makefile to include .depend generation I get tripped. > > BSD make automagically uses .depend if one

Makefiles compatible with both BSD and GNU make?

2005-03-16 Thread David Kelly
I got the silly idea that I want one Makefile to work with both BSD and GNU makes. Silly me. Fairly simple Makefiles work but when expanding my Makefile to include .depend generation I get tripped. BSD make automagically uses .depend if one is found. GNU make requires the file be named in an inclu