10 # Directories to include in cscope name file and TAGS.
11 CSCOPEDIRS= boot bsm cam compat conf contrib crypto ddb dev fs gdb geom gnu \
12 i4b isa kern libkern modules net net80211 netatalk netatm \
13 netgraph netinet netinet6 netipsec netipx netnatm netncp \
14 netsmb nfs nfs4client nfsclient nfsserver opencrypto pccard \
15 pci rpc security sys ufs vm ${ARCHDIR}
19 # Loadable kernel modules
21 .if defined(MODULES_WITH_WORLD)
25 HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh`
27 # You need the devel/cscope port for this.
28 cscope: ${.CURDIR}/cscopenamefile
29 cd ${.CURDIR}; cscope -k -p4 -i cscopenamefile
31 ${.CURDIR}/cscopenamefile:
32 cd ${.CURDIR}; find ${CSCOPEDIRS} -name "*.[csh]" > ${.TARGET}
34 # You need the devel/global and one of editor/emacs* ports for that.
35 TAGS ${.CURDIR}/TAGS: ${.CURDIR}/cscopenamefile
37 cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscopenamefile
39 .include <bsd.subdir.mk>