Reorganize this Makefile so that all the bsd.*.mk bits are in one

section at the bottom.

Reviewed by:	imp
This commit is contained in:
John Baldwin 2014-05-29 16:03:08 +00:00
parent f069f300ad
commit 71e8891a3a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=266845

View File

@ -1,15 +1,5 @@
# $FreeBSD$
.if !(make(cscope) || make(cscope-clean) || make(cscope-hook) || make(TAGS) || \
make(glimpse) || make(glimpse-clean))
.include <src.opts.mk>
# The boot loader
.if ${MK_BOOT} != "no"
SUBDIR= boot
.endif
.endif
# Directories to include in cscope name file and TAGS.
CSCOPEDIRS= boot bsm cam cddl compat conf contrib crypto ddb dev fs gdb \
geom gnu isa kern libkern modules net net80211 \
@ -30,12 +20,6 @@ CSCOPE_ARCHDIR += x86
.endif
.endif
# Loadable kernel modules
.if defined(MODULES_WITH_WORLD)
SUBDIR+=modules
.endif
HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh`
# You need the devel/cscope port for this.
@ -85,4 +69,20 @@ glimpse:
glimpse-clean:
cd ${.CURDIR}; rm -f .glimpse_*
.if !(make(cscope) || make(cscope-clean) || make(cscope-hook) || make(TAGS) || \
make(glimpse) || make(glimpse-clean))
.include <src.opts.mk>
# The boot loader
.if ${MK_BOOT} != "no"
SUBDIR= boot
.endif
# Loadable kernel modules
.if defined(MODULES_WITH_WORLD)
SUBDIR+=modules
.endif
.include <bsd.subdir.mk>
.endif