Re: Make GNU Make behave like BSD Make?

2005-07-13 Thread Dan Nelson
In the last episode (Jul 13), David Kelly said: > On Wed, Jul 13, 2005 at 02:08:07PM -0500, Dan Nelson wrote: > > I believe "-include .depend" will tell gmake to try to include the > > file but not complain if it's not there. > > Yes! That does work! > > OTOH it breaks in BSD Make. :-( Automake

Re: Make GNU Make behave like BSD Make?

2005-07-13 Thread David Kelly
On Wed, Jul 13, 2005 at 02:08:07PM -0500, Dan Nelson wrote: > > I believe "-include .depend" will tell gmake to try to include the file > but not complain if it's not there. Yes! That does work! OTOH it breaks in BSD Make. :-( Thought to try something like this which makes BSD happy but breaks

Re: Make GNU Make behave like BSD Make?

2005-07-13 Thread Dan Nelson
In the last episode (Jul 13), David Kelly said: > Yes, but the problem is that I want to make GNU Make behave the BSD way. > Specifically my application is an embedded AVR and it really needs to > build fairly painlessly under the WinAVR environment where GNU Make is > painlessly bundled. Yet I als

Re: Make GNU Make behave like BSD Make?

2005-07-13 Thread David Kelly
On Wed, Jul 13, 2005 at 05:12:57PM +0100, Alex Zbyslaw wrote: > David Kelly wrote: > > >So my question is "Is there a way to make GNU Make handle .depend the > >BSD way? And is it possible for the same Makefile to run the same way on > >either BSD or GNU Makes?" > > However, you could just try st

Re: Make GNU Make behave like BSD Make?

2005-07-13 Thread Alex Zbyslaw
David Kelly wrote: So my question is "Is there a way to make GNU Make handle .depend the BSD way? And is it possible for the same Makefile to run the same way on either BSD or GNU Makes?" I don't know the answer to your question (but I suspect it's "no, unless you hack the source"). Howev

Make GNU Make behave like BSD Make?

2005-07-13 Thread David Kelly
BSD make will automatically and silently include .depend if one exists in the same directory as the Makefile. Otherwise it won't complain if .depend is missing. In GNU Make one must explicitly "include .depend", but if .depend does not exist GNU Make aborts. And can't .depend as a target dependenc