11.6Sdyoung#	$NetBSD: Makefile,v 1.6 2011/04/04 19:45:00 dyoung Exp $
21.1Ssoren
31.1Ssoren# Makefile for cobalt tags file
41.1Ssoren
51.1Ssoren# Find where mips source files are for inclusion in tags
61.1Ssoren.include <../mips/Makefile.inc>
71.1Ssoren
81.6SdyoungTCOBALT=	${SYSDIR}/arch/cobalt/tags
91.6SdyoungSCOBALT=	${SYSDIR}/arch/cobalt/cobalt/*.[ch] \
101.6Sdyoung		${SYSDIR}/arch/cobalt/include/*.h \
111.6Sdyoung		${SYSDIR}/arch/cobalt/dev/*.[ch] \
121.6Sdyoung		${SYSDIR}/arch/cobalt/pci/*.[ch]
131.6SdyoungACOBALT=	${SYSDIR}/arch/cobalt/cobalt/*.S
141.1Ssoren
151.1Ssoren# Directories in which to place tags links
161.1SsorenDCOBALT=	pci include
171.1Ssoren
181.1Ssoren.include "../../kern/Make.tags.inc"
191.1Ssoren
201.1Ssorentags:
211.6Sdyoung	-rm -f ${TCOBALT}
221.6Sdyoung	-echo ${SCOBALT} ${SMIPS} | xargs ctags -wadtf ${TCOBALT}
231.6Sdyoung	-${FINDCOMM} | xargs ctags -wadtf ${TCOBALT}
241.1Ssoren	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ACOBALT} ${AMIPS} | \
251.5Sapb	    ${TOOL_SED} -e \
261.5Sapb		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
271.1Ssoren		>> ${TCOBALT}
281.1Ssoren	sort -o ${TCOBALT} ${TCOBALT}
291.1Ssoren
301.1Ssorenlinks:
311.1Ssoren	-for i in ${DCOBALT}; do \
321.1Ssoren	    cd $$i && rm -f tags; ln -s ../tags tags; done
331.1Ssoren
341.4SlukemSUBDIR=	compile include stand
351.1Ssoren
361.1Ssoren.include <bsd.subdir.mk>
37