From e2b11e368bb52c9edf7e531909731009d03eb7bf Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 5 Mar 1996 11:13:07 +0000 Subject: Labeling style changed ($OpenBSD$). POSTINSTALL added to the (see bsd.README for details). --- share/mk/bsd.lkm.mk | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'share/mk/bsd.lkm.mk') diff --git a/share/mk/bsd.lkm.mk b/share/mk/bsd.lkm.mk index 80d6a764317..a4334ec315f 100644 --- a/share/mk/bsd.lkm.mk +++ b/share/mk/bsd.lkm.mk @@ -1,5 +1,5 @@ -# $OpenBSD: bsd.lkm.mk,v 1.2 1996/03/02 21:01:23 tholo Exp $ -# @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 +# $OpenBSD: bsd.lkm.mk,v 1.3 1996/03/05 11:12:45 mickey Exp $ +# from @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 .if exists(${.CURDIR}/../Makefile.inc) .include "${.CURDIR}/../Makefile.inc" @@ -19,6 +19,9 @@ OBJS+= ${SRCS:N*.h:N*.sh:R:S/$/.o/g} LOBJS+= ${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln} .endif COMBINED?=combined.o +.if !defined(POSTINSTALL) +POSTINSTALL= ${LKM}install +.endif .if defined(OBJS) && !empty(OBJS) @@ -61,7 +64,11 @@ realinstall: load: ${COMBINED} - modload -d -o $(LKM) -e$(LKM) $(COMBINED) + if [ -x ${.CURDIR}/${POSTINSTALL} ]; then \ + modload -d -o $(LKM) -e$(LKM) -p${.CURDIR}/${POSTINSTALL} $(COMBINED); \ + else \ + modload -d -o $(LKM) -e$(LKM) $(COMBINED); \ + fi unload: modunload -n $(LKM) -- cgit v1.2.3