11.7She#	$NetBSD: Makefile,v 1.7 2008/11/25 09:47:40 he Exp $
21.1Ssoren
31.1Ssoren# Makefile for sgimips 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.4SdyoungTSGIMIPS=	${SYSDIR}/arch/sgimips/tags
91.4SdyoungSSGIMIPS=	${SYSDIR}/arch/sgimips/sgimips/*.[ch] \
101.4Sdyoung		${SYSDIR}/arch/sgimips/include/*.h \
111.4Sdyoung		${SYSDIR}/arch/sgimips/dev/*.[ch] \
121.4Sdyoung		${SYSDIR}/arch/sgimips/eisa/*.[ch] \
131.4Sdyoung		${SYSDIR}/arch/sgimips/gio/*.[ch] \
141.4Sdyoung		${SYSDIR}/arch/sgimips/hpc/*.[ch] \
151.4Sdyoung		${SYSDIR}/arch/sgimips/ioc/*.[ch] \
161.4Sdyoung		${SYSDIR}/arch/sgimips/mace/*.[ch] \
171.4Sdyoung		${SYSDIR}/arch/sgimips/pci/*.[ch]
181.4SdyoungASGIMIPS=	${SYSDIR}/arch/sgimips/sgimips/*.S
191.1Ssoren
201.1Ssoren# Directories in which to place tags links
211.2SsorenDSGIMIPS=	dev eisa gio hpc include pci xio
221.1Ssoren
231.1Ssoren.include "../../kern/Make.tags.inc"
241.1Ssoren
251.1Ssorentags:
261.4Sdyoung	-rm -f ${TSGIMIPS}
271.4Sdyoung	-echo ${SSGIMIPS} ${SMIPS} | xargs ctags -wadtf ${TSGIMIPS}
281.4Sdyoung	-${FINDCOMM} | xargs ctags -wadtf ${TSGIMIPS}
291.1Ssoren	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASGIMIPS} ${AMIPS} | \
301.6Sapb	    ${TOOL_SED} -e \
311.6Sapb		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
321.4Sdyoung	    >> ${TSGIMIPS}
331.1Ssoren	sort -o ${TSGIMIPS} ${TSGIMIPS}
341.1Ssoren
351.1Ssorenlinks:
361.1Ssoren	-for i in ${DSGIMIPS}; do \
371.1Ssoren	    cd $$i && rm -f tags; ln -s ../tags tags; done
381.1Ssoren
391.4Sdyoung
401.7SheSUBDIR=	compile include dev stand
411.1Ssoren
421.1Ssoren.include <bsd.subdir.mk>
43