summaryrefslogtreecommitdiffstats
path: root/sys/conf/kmod.mk
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-06-24 04:26:21 +0000
committerjkh <jkh@FreeBSD.org>1996-06-24 04:26:21 +0000
commit8eb37231d4405088a481324c2ec41ac851e8d8f7 (patch)
treedc80da53186aab7c56424c2574b0cd7928930721 /sys/conf/kmod.mk
parent3acbd3cce674dab9a0afdee1f6e50196f4585ffa (diff)
downloadFreeBSD-src-8eb37231d4405088a481324c2ec41ac851e8d8f7.zip
FreeBSD-src-8eb37231d4405088a481324c2ec41ac851e8d8f7.tar.gz
Bring in my changes for removing the pestilent obj links (unless you
really want them) from /usr/src. This is the final version of the patches, incorporating the feedback I've received from -current.
Diffstat (limited to 'sys/conf/kmod.mk')
-rw-r--r--sys/conf/kmod.mk32
1 files changed, 8 insertions, 24 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index dde7ea0..258b885 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
-# $Id: bsd.kmod.mk,v 1.21 1996/05/25 23:09:47 wosch Exp $
+# $Id: bsd.kmod.mk,v 1.22 1996/06/17 15:11:10 bde Exp $
#
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
# <bsd.kmod.mk> includes the file named "../Makefile.inc" if it exists,
@@ -134,25 +134,12 @@ MAN1= ${KMOD}.4
.endif
.elif !target(maninstall)
-maninstall:
+maninstall: _SUBDIR
all-man:
.endif
-_PROGSUBDIR: .USE
-.if defined(SUBDIR) && !empty(SUBDIR)
- @for entry in ${SUBDIR}; do \
- (${ECHODIR} "===> $$entry"; \
- if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \
- cd ${.CURDIR}/$${entry}.${MACHINE}; \
- else \
- cd ${.CURDIR}/$${entry}; \
- fi; \
- ${MAKE} ${.TARGET:S/realinstall/install/:S/.depend/depend/}); \
- done
-.endif
-
.MAIN: all
-all: ${PROG} all-man _PROGSUBDIR
+all: ${PROG} all-man _SUBDIR
CLEANFILES+=${PROG} ${OBJS}
@@ -164,7 +151,7 @@ beforeinstall:
afterinstall:
.endif
-realinstall: _PROGSUBDIR
+realinstall: _SUBDIR
${INSTALL} ${COPY} -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \
${INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR}
.if defined(LINKS) && !empty(LINKS)
@@ -180,7 +167,7 @@ realinstall: _PROGSUBDIR
done; true
.endif
-install: afterinstall
+install: afterinstall _SUBDIR
.if !defined(NOMAN)
afterinstall: realinstall maninstall
.else
@@ -191,12 +178,12 @@ realinstall: beforeinstall
DISTRIBUTION?= bin
.if !target(distribute)
-distribute:
+distribute: _SUBDIR
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${DISTRIBUTION} SHARED=copies
.endif
.if !target(tags)
-tags: ${SRCS} _PROGSUBDIR
+tags: ${SRCS} _SUBDIR
.if defined(PROG)
-cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC} | \
sed "s;\${.CURDIR}/;;" > tags
@@ -221,8 +208,5 @@ 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>
-
+.include <bsd.obj.mk>
OpenPOWER on IntegriCloud