How to build kernel module spread on subdirectories?
Nikola Knežević
laladelausanne at gmail.com
Mon Dec 1 03:08:21 PST 2008
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
More information about the freebsd-hackers
mailing list