Re: How to generate a Makefile.depend?

From: Kyle Evans <kevans_at_freebsd.org>
Date: Fri, 18 Feb 2022 15:44:50 UTC
On Fri, Feb 18, 2022 at 8:28 AM Felix Palmen <felix@palmen-it.de> wrote:
>
> I'm trying to add a little tool to my local tree and I'm stuck with
> something I *assume* should be simple. As I understand it, there should
> be a Makefile.depend in its directory, listing all the dir dependencies,
> and this should be somehow auto-generated from .meta files. I just can't
> figure out how to do it.
>
> I have this very simple Makefile for it:
> ---
> # $FreeBSD$
>
> PACKAGE=        runtime
>
> PROG=   pam_unix-helper
> MAN=    # no manpage, internally used by pam_unix.so
>
> LIBADD= crypt
>
> BINOWN= root
> BINMODE=4555
>
> .include <bsd.prog.mk>
> ---
>
> It builds just fine (using meta mode), so what do I need to do to get
> the corresponding Makefile.depend?
>

Makefile.depend falls in "do not worry about it" territory; they're
only used for dirdeps mode, which to my understanding will tolerate
and generate the missing Makefile.depend as it goes anyways. bdrewery
or sjg periodically commit/update .depend files.

Thanks,

Kyle Evans