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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to