Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 1997 20:03:11 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        davidn@unique.usn.blaze.net.au, jdp@polstra.com
Cc:        mdavis@io.cts.com, stable@FreeBSD.ORG
Subject:   Re: games hierarchy breaks 2.2.1 build
Message-ID:  <199704101003.UAA30408@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> > Although /usr/src/games did not exist, it was the none-too-obvious
>> > /usr/obj/usr/src/games that did which caused the problem.
>> 
>> Really?!  That seems like completely bogus behavior on the part of "make".
>> Could you please use "send-pr" to file a bug report?
>
>Bogus or not, it makes sense in terms of how make handles
>the object directory and is consitent with how it behaves
>with all files relative to the "current" directory.

Yes, make always cd's to the obj directory if there is one,
so that the current directory is always the object directory.

>.if exists(games) && !defined(NOGAMES)
>SUBDIR+= games
>.endif
>
>This test (and others of a similar type) should be changed to:
>
>.if exists(${.CURDIR}/games) && !defined(NOGAMES)
>SUBDIR+= games
>.endif

The test used to work when there was no obj directory in
/usr/src, so make didn't cd to it, but now that the object
tree exists independently of symlinks to it, there is no way
to avoid having a (virtual) obj directory in /usr/src.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704101003.UAA30408>