diff options
author | Peter Wemm <peter@FreeBSD.org> | 2000-05-27 00:54:15 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2000-05-27 00:54:15 +0000 |
commit | 08f95f1e10e53a38e88af9f5714c8f36cd025a1c (patch) | |
tree | e22abcbad859dc1c3c2e4909cd64a7f6b6844a97 /share/mk/bsd.kmod.mk | |
parent | b6b204a98b6b536cc98d75c98e28feb4d4cf64ce (diff) | |
download | src-08f95f1e10e53a38e88af9f5714c8f36cd025a1c.tar.gz src-08f95f1e10e53a38e88af9f5714c8f36cd025a1c.zip |
Revive a skeleton for bsd.kmod.mk (which will be in the make search path)
that merely locates and includes sys/conf/kmod.mk.
Notes
Notes:
svn path=/head/; revision=60963
Diffstat (limited to 'share/mk/bsd.kmod.mk')
-rw-r--r-- | share/mk/bsd.kmod.mk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk new file mode 100644 index 000000000000..b4c4236479b3 --- /dev/null +++ b/share/mk/bsd.kmod.mk @@ -0,0 +1,13 @@ +# $FreeBSD$ + +# Search for kernel source tree in standard places. +.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. /sys /usr/src/sys +.if !defined(SYSDIR) && exists(${_dir}/kern/) && exists(${_dir}/conf/) +SYSDIR= ${_dir} +.endif +.endfor +.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || !exists(${SYSDIR}/conf/) +.error "can't find kernel source tree" +.endif + +.include "${SYSDIR}/kmod.mk" |