Makefile revision 156813
1# $FreeBSD: head/sys/Makefile 156813 2006-03-17 18:54:44Z ru $
2
3.include <bsd.own.mk>
4
5# The boot loader
6.if ${MK_BOOT} != "no"
7.if ${MACHINE_ARCH} != "arm"
8SUBDIR=	boot
9.endif
10.endif
11
12# Directories to include in cscope name file and TAGS.
13CSCOPEDIRS=	coda compat conf contrib crypto ddb dev fs gnu i4b isa \
14		isofs kern libkern modules net netatalk netatm netgraph \
15		netinet netinet6 netipx netkey netnatm netncp netsmb nfs \
16		nfsclient nfs4client rpc pccard pci posix4 sys ufs vm \
17		${ARCHDIR}
18
19ARCHDIR	?=	${MACHINE}
20
21# Loadable kernel modules
22
23.if defined(MODULES_WITH_WORLD)
24SUBDIR+=modules
25.endif
26
27HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh`
28
29cscope:	${.CURDIR}/cscopenamefile
30	cd ${.CURDIR}; cscope -k -p4 -i cscopenamefile
31
32${.CURDIR}/cscopenamefile: 
33	cd ${.CURDIR}; find ${CSCOPEDIRS} -name "*.[csh]" > ${.TARGET}
34
35TAGS ${.CURDIR}/TAGS:	${.CURDIR}/cscopenamefile
36	rm -f ${.CURDIR}/TAGS
37	cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscopenamefile
38
39.include <bsd.subdir.mk>
40