* Crist J. Clark ([EMAIL PROTECTED]) wrote: > The warning is just how make(1) works,
AFAIK, you can use shell cmd's in bsd make... > # Calling kldxref(8) for each module is expensive. > .if !defined(NO_XREF) > .MAKEFLAGS:= ${.MAKEFLAGS} -DNO_XREF > afterinstall: > -kldxref ${DESTDIR}${KMODDIR} > .endif Maybe you could do something like this? # Calling kldxref(8) for each module is expensive. .if !defined(NO_XREF) .MAKEFLAGS:= ${.MAKEFLAGS} -DNO_XREF afterinstall: @if [ -x /usr/sbin/kldref ]; then \ kldxref ${DESTDIR}${KMODDIR}; \ fi .endif This approach seems to work for me. Cheers, Emiel -- Langsam's Laws: (1) Everything depends. (2) Nothing is always. (3) Everything is sometimes. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message