Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Dec 2008 12:08:13 +0100
From:      =?UTF-8?Q?Nikola_Kne=C5=BEevi=C4=87?= <laladelausanne@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: How to build kernel module spread on subdirectories?
Message-ID:  <D6756955-6E0B-429A-9216-2CF223D503D7@gmail.com>
In-Reply-To: <49332E5C.9020303@freebsd.org>
References:  <711D7381-D852-4B6B-991A-84BA6DEFB679@gmail.com>	<2A1A4C21-8A2D-4151-BCA0-5FAE1D3BBE86@gmail.com>	<200811301843.28564.fbsd.hackers@rachie.is-a-geek.net> <94D09AB0-86B6-4D91-BD61-AB02A12CC260@gmail.com> <49332E5C.9020303@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1 Dec 2008, at 01:22 , Tim Kientzle wrote:

>> .MAKEFILEDEPS: elements.mk
>> .sinclude "elements.mk"
>> .include <bsd.kmod.mk>
>> --->8---
>> When I run make depend, it only includes SRCSs from BSDmakefile,  
>> not  those from elements.mk.
>
> I would try adding a "beforedepend" requirement:
>
> beforedepend: elements.mk
>
> Look at /usr/share/mk/bsd.dep.mk, which has the 'make depend'
> logic.  It supports optional "beforedepend" and "afterdepend"
> targets.

Hi Tim,
thanks for the tip.

I've tried adding beforedepend: elements.mk rule before .sinclude.

Unfortunately, everything is the same still. Is there a way to force  
explicitly what .MAKEFILEDEPS? beforedepend will create elements.mk,  
but that file won't be re-read and included before depend is called.

Cheers,
Nikola



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D6756955-6E0B-429A-9216-2CF223D503D7>