summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.kmod.mk
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1996-04-11 23:03:10 +0000
committerwosch <wosch@FreeBSD.org>1996-04-11 23:03:10 +0000
commit791b2ca0a687efa30f63c62c9980fda15032f843 (patch)
tree582c4dfe648acb4cde38ada9f46245ca0c3caa35 /share/mk/bsd.kmod.mk
parentde771425950a262da8d12fbd67847cf0d17b1463 (diff)
downloadFreeBSD-src-791b2ca0a687efa30f63c62c9980fda15032f843.zip
FreeBSD-src-791b2ca0a687efa30f63c62c9980fda15032f843.tar.gz
remove variables KMODGRP?=, KMODOWN?=, KMODMODE?=
replace ${BIN*} variables with ${KMOD*} variables cleanup manpage code include bsd.obj.mk remove targets clean, cleandir, obj (included by bsd.obj.mk)
Diffstat (limited to 'share/mk/bsd.kmod.mk')
-rw-r--r--share/mk/bsd.kmod.mk58
1 files changed, 15 insertions, 43 deletions
diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk
index 45a4cfb..3934c58 100644
--- a/share/mk/bsd.kmod.mk
+++ b/share/mk/bsd.kmod.mk
@@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
-# $Id: bsd.kmod.mk,v 1.18 1996/03/09 23:48:54 wosch Exp $
+# $Id: bsd.kmod.mk,v 1.19 1996/04/03 12:08:52 phk Exp $
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
@@ -19,10 +19,6 @@ CWARNFLAGS?= -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
CFLAGS+=${COPTS} -DKERNEL -DACTUALLY_LKM_NOT_KERNEL -I${.CURDIR}/../../sys \
${CWARNFLAGS}
-KMODGRP?= bin
-KMODOWN?= bin
-KMODMODE?= 555
-
EXPORT_SYMS?= _${KMOD}
.if defined(VFS_LKM)
@@ -52,12 +48,17 @@ ${PROG}: ${DPSRCS} ${OBJS} ${DPADD}
.endif
mv tmp.o ${.TARGET}
-.if !defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \
- !defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \
- !defined(MAN7) && !defined(MAN8) && !defined(NOMAN)
+.if !defined(NOMAN)
+.include <bsd.man.mk>
+.if !defined(_MANPAGES) || empty(_MANPAGES)
MAN1= ${KMOD}.4
.endif
+.elif !target(maninstall)
+maninstall:
+all-man:
+.endif
+
_PROGSUBDIR: .USE
.if defined(SUBDIR) && !empty(SUBDIR)
@for entry in ${SUBDIR}; do \
@@ -74,17 +75,7 @@ _PROGSUBDIR: .USE
.MAIN: all
all: ${PROG} all-man _PROGSUBDIR
-.if !target(clean)
-clean: _PROGSUBDIR
- rm -f a.out Errs errs mklog ${PROG} ${OBJS} ${CLEANFILES}
-.endif
-
-.if !target(cleandir)
-cleandir: _PROGSUBDIR
- rm -f a.out Errs errs mklog ${PROG} ${OBJS} ${CLEANFILES}
- rm -f ${.CURDIR}/tags .depend
- cd ${.CURDIR}; rm -rf obj;
-.endif
+CLEANFILES+=${PROG} ${OBJS}
.if !target(install)
.if !target(beforeinstall)
@@ -95,8 +86,8 @@ afterinstall:
.endif
realinstall: _PROGSUBDIR
- ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
- ${INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR}
+ ${INSTALL} ${COPY} -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \
+ ${INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR}
.if defined(LINKS) && !empty(LINKS)
@set ${LINKS}; \
while test $$# -ge 2; do \
@@ -125,22 +116,6 @@ distribute:
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${DISTRIBUTION} SHARED=copies
.endif
-.if !target(obj)
-.if defined(NOOBJ)
-obj: _PROGSUBDIR
-.else
-obj: _PROGSUBDIR
- @cd ${.CURDIR}; rm -rf obj; \
- here=`pwd`; dest=/usr/obj`echo $$here | sed 's,^/usr/src,,'`; \
- ${ECHO} "$$here -> $$dest"; ln -s $$dest obj; \
- if test -d /usr/obj -a ! -d $$dest; then \
- mkdir -p $$dest; \
- else \
- true; \
- fi;
-.endif
-.endif
-
.if !target(tags)
tags: ${SRCS} _PROGSUBDIR
.if defined(PROG)
@@ -149,12 +124,6 @@ tags: ${SRCS} _PROGSUBDIR
.endif
.endif
-.if !defined(NOMAN)
-.include <bsd.man.mk>
-.elif !target(maninstall)
-maninstall:
-all-man:
-.endif
.if !target(load)
load: ${PROG}
@@ -174,4 +143,7 @@ vnode_if.h: ${KERN}/vnode_if.sh ${KERN}/vnode_if.src
./vnode_if.h: vnode_if.h
_DEPSUBDIR= _PROGSUBDIR
+_SUBDIRUSE: _PROGSUBDIR
+.include <bsd.obj.mk>
.include <bsd.dep.mk>
+
OpenPOWER on IntegriCloud