Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2002 07:29:24 +0100
From:      Emiel Kollof <coolvibe@hackerheaven.org>
To:        cjclark@alum.mit.edu
Cc:        current@freebsd.org
Subject:   Re: 4.5->5.0 kldxref:No such file or directory
Message-ID:  <20020313062924.GD70809@hackerheaven.org>
In-Reply-To: <20020312214457.L29705@blossom.cjclark.org>
References:  <200203122105.g2CL56p02307@hunkular.glarp.com> <20020312174502.K29705@blossom.cjclark.org> <20020313031335.GA70809@hackerheaven.org> <20020312214457.L29705@blossom.cjclark.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Crist J. Clark (crist.clark@attbi.com) 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 majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020313062924.GD70809>