Subject: Re: ${SRCS} dependency for .depend in bsd.dep.mk
To: None <brook@biology.nmsu.edu>
From: Luke Mewburn <lukem@NetBSD.org>
List: current-users
Date: 05/12/2004 12:53:05
--7AwgMNpd3VkAVXjS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 11, 2004 at 08:16:14AM -0600, brook@biology.nmsu.edu wrote:
  | In share/mk/bsd.dep.mk (v1.67), the dependency for .depend is the
  | following:
  |=20
  |      .depend: ${__DPSRCS.d}
  |=20
  | where ${__DPSRCS.d} is derived from ${SRCS} if it is defined.
  | One consequence of this is that dynamically constructed files will
  | build with 'make all' but will not exist for an earlier 'make
  | depend'.  Earlier incarnations of this file included a dependency on
  | ${SRCS} for the .depend target.
  |=20
  | This behavior was removed in bsd.dep.mk (v1.54) with the following
  | comment:
  |=20
  |      Revision 1.54, Fri Aug 1 00:55:43 2003 UTC (9 months, 1 week ago) =
by lukem=20
  |      Branch: MAIN=20
  |      Changes since 1.53: +2 -2 lines=20
  |=20
  |      tweak ${DEPENDSRCS.d} target so that ${SRCS} isn't there.  this fi=
xes the
  |      "make: out of memory" problem when make dependencies in lib/libc.
  |=20
  |      XXX: this is a temporary workaround.  i'm working on cleaning up h=
ow
  |      the DPSRCS stuff is used throughout the tree...
  |=20
  | Since that time a lot has changed in the structure of bsd.dep.mk.  I
  | wonder if it is ok to reintroduce the ${SRCS} dependency, so that
  | Makefiles with dynamically created source code will be able to make
  | their dependencies properly.

That shouldn't be necessary; automatically generated sources should
be listed in DPSRCS so that they are created as part of "make depend"
(before "make all").

Which directories in the tree isn't this true for?

--7AwgMNpd3VkAVXjS
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAoZGRpBhtmn8zJHIRAmyqAKCWgeHYBH6H2wf4eMl1OX2JOPF1cwCcCr+a
oik7x8Do6FVs+YbTlt9cR9A=
=zkom
-----END PGP SIGNATURE-----

--7AwgMNpd3VkAVXjS--