Makefile revision 215606
150477Speter# $FreeBSD: head/sys/Makefile 215606 2010-11-21 03:58:11Z obrien $ 21598Srgrimes 3156813Sru.include <bsd.own.mk> 4156813Sru 558284Speter# The boot loader 6156813Sru.if ${MK_BOOT} != "no" 7116865SpeterSUBDIR= boot 8129269Scognet.endif 91598Srgrimes 10143145Sgrog# Directories to include in cscope name file and TAGS. 11180627SmaximCSCOPEDIRS= boot bsm cam cddl compat conf contrib crypto ddb dev fs gdb \ 12180627Smaxim geom gnu isa kern libkern modules net net80211 netatalk \ 13171245Sbz netgraph netinet netinet6 netipsec netipx netnatm netncp \ 14192578Srwatson netsmb nfs nfsclient nfsserver nlm opencrypto \ 15188651Simp pci rpc security sys ufs vm xdr ${CSCOPE_ARCHDIR} 16180428Sobrien.if defined(ALL_ARCH) 17215605SobrienCSCOPE_ARCHDIR ?= amd64 arm i386 ia64 mips pc98 powerpc sparc64 sun4v x86 18180428Sobrien.else 19180428SobrienCSCOPE_ARCHDIR ?= ${MACHINE} 20180428Sobrien.endif 21143145Sgrog 22124610Sru# Loadable kernel modules 23143145Sgrog 2461744Sobrien.if defined(MODULES_WITH_WORLD) 2561744SobrienSUBDIR+=modules 2661744Sobrien.endif 2761744Sobrien 2827356SjkhHTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh` 2927356Sjkh 30171245Sbz# You need the devel/cscope port for this. 31179174Sobriencscope: cscope.out 32179174Sobriencscope.out: ${.CURDIR}/cscope.files 33179174Sobrien cd ${.CURDIR}; cscope -k -buq -p4 34143145Sgrog 35179174Sobrien${.CURDIR}/cscope.files: .PHONY 36179174Sobrien cd ${.CURDIR}; \ 37215606Sobrien find ${CSCOPEDIRS} -name "*.[chSsly]" -a -type f > ${.TARGET} 38143145Sgrog 39179174Sobriencscope-clean: 40179174Sobrien rm -f cscope.files cscope.out cscope.in.out cscope.po.out 41179174Sobrien 42171245Sbz# You need the devel/global and one of editor/emacs* ports for that. 43179174SobrienTAGS ${.CURDIR}/TAGS: ${.CURDIR}/cscope.files 44143145Sgrog rm -f ${.CURDIR}/TAGS 45179174Sobrien cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscope.files 46143145Sgrog 47181432Sphilip# You need the textproc/glimpse ports for this. 48181432Sphilipglimpse: 49181756Sphilip.if !exists(${.CURDIR}/.glimpse_exclude) 50181756Sphilip echo .svn > ${.CURDIR}/.glimpse_exclude 51181756Sphilip echo /compile/ >> ${.CURDIR}/.glimpse_exclude 52181756Sphilip.endif 53181432Sphilip cd ${.CURDIR}; glimpseindex -H . -B -f -o . 54181432Sphilip 55181432Sphilipglimpse-clean: 56181432Sphilip cd ${.CURDIR}; rm -f .glimpse_* 57181432Sphilip 581598Srgrimes.include <bsd.subdir.mk> 59