summaryrefslogtreecommitdiff
path: root/share/mk/bsd.lkm.mk
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-03-05 11:13:07 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-03-05 11:13:07 +0000
commite2b11e368bb52c9edf7e531909731009d03eb7bf (patch)
tree6a8383eff9e8a13218a377dca51b0a84a87e2f16 /share/mk/bsd.lkm.mk
parentca2a5226b4ee178667f1a8f756232cc79e8eac72 (diff)
Labeling style changed ($OpenBSD$).
POSTINSTALL added to the <bsd.lkm.mk> (see bsd.README for details).
Diffstat (limited to 'share/mk/bsd.lkm.mk')
-rw-r--r--share/mk/bsd.lkm.mk13
1 files changed, 10 insertions, 3 deletions
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)