10 # Directories to include in cscope name file and TAGS.
11 CSCOPEDIRS= coda compat conf contrib crypto ddb dev fs geom gnu i4b isa \
12 isofs kern libkern modules net net80211 netatalk netatm \
13 netgraph netinet netinet6 netipx netkey netnatm netncp \
14 netsmb nfs nfsclient nfs4client rpc pccard pci posix4 sys \
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 cscope: ${.CURDIR}/cscopenamefile
28 cd ${.CURDIR}; cscope -k -p4 -i cscopenamefile
30 ${.CURDIR}/cscopenamefile:
31 cd ${.CURDIR}; find ${CSCOPEDIRS} -name "*.[csh]" > ${.TARGET}
33 TAGS ${.CURDIR}/TAGS: ${.CURDIR}/cscopenamefile
35 cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscopenamefile
37 .include <bsd.subdir.mk>