Make GNU Make behave like BSD Make?

Dan Nelson dnelson at allantgroup.com
Wed Jul 13 19:08:18 GMT 2005


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 also often use FreeBSD and ports/devel/avr*.
> 
> I do have gmake installed on FreeBSD so that isn't an issue. Another way
> to say what I'm trying to do is that gmake barfs if "include .depend"
> is specified but .depend does not exist. The result is "make depend" is
> not a solution for creating .depend.
> 
> Its not a problem for *me* to "touch .depend" the first time. OTOH it
> stymied my boss.

I believe "-include .depend" will tell gmake to try to include the file
but not complain if it's not there.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list