Date: Sun, 30 Nov 2008 16:22:52 -0800 From: Tim Kientzle <kientzle@freebsd.org> To: =?UTF-8?B?Tmlrb2xhIEtuZcW+ZXZpxIc=?= <laladelausanne@gmail.com> Cc: Mel <fbsd.hackers@rachie.is-a-geek.net>, freebsd-hackers@freebsd.org Subject: Re: How to build kernel module spread on subdirectories? Message-ID: <49332E5C.9020303@freebsd.org> In-Reply-To: <94D09AB0-86B6-4D91-BD61-AB02A12CC260@gmail.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
Nikola Knežević wrote: > As I described in my initial mail, I have to use two makefiles. One is > the main Makefile, while the other has to be generated. In the > generated .mk, I add to the SRCS, and I create the .PATH target with > other (necessary) directories. Unfortunately, make depend doesn't work > as it should be. > .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. Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49332E5C.9020303>