Make GNU Make behave like BSD Make?
David Kelly
dkelly at hiwaay.net
Wed Jul 13 20:41:32 GMT 2005
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 GNU.
Strangly, GNU seems to fault the .endif as its happy if the .endif is
deleted and -include is last thing in the file:
.if ! $(OSTYPE) == "FreeBSD"
-include .depend
.endif
Thanks all! Guess its time to quit playing with it as -include solves
the immediate problem and already have gmake on BSD.
--
David Kelly N4HHE, dkelly at HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.
More information about the freebsd-questions
mailing list