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:
parent
f069f300ad
commit
71e8891a3a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=266845
32
sys/Makefile
32
sys/Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user