10 # Directories to include in cscope name file and TAGS.
11 CSCOPEDIRS= boot bsm cam compat conf contrib crypto ddb dev fs gdb geom \
12 gnu isa kern libkern modules net net80211 netatalk \
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.
29 cscope.out: ${.CURDIR}/cscope.files
30 cd ${.CURDIR}; cscope -k -buq -p4
32 ${.CURDIR}/cscope.files: .PHONY
34 find ${CSCOPEDIRS} -name "*.[chSs]" -a -type f > ${.TARGET}
37 rm -f cscope.files cscope.out cscope.in.out cscope.po.out
39 # You need the devel/global and one of editor/emacs* ports for that.
40 TAGS ${.CURDIR}/TAGS: ${.CURDIR}/cscope.files
42 cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscope.files
44 .include <bsd.subdir.mk>