Makefile revision 1.3
11.3Sdyoung#	$NetBSD: Makefile,v 1.3 2006/08/06 17:21:58 dyoung Exp $
21.1Ssimonb
31.1Ssimonb# Makefile for evbmips tags file and boot blocks
41.1Ssimonb
51.1Ssimonb# Find where mips source files are for inclusion in tags
61.1Ssimonb.include <../mips/Makefile.inc>
71.1Ssimonb
81.1Ssimonb# XXX !  fix this
91.3SdyoungTEVBMIPS=	${SYSDIR}/arch/evbmips/tags
101.3SdyoungSEVBMIPS=	${SYSDIR}/arch/evbmips/evbmips/*.[ch] \
111.3Sdyoung		${SYSDIR}/arch/evbmips/include/*.h \
121.3Sdyoung		${SYSDIR}/arch/evbmips/isa/*.[ch]
131.3SdyoungAEVBMIPS=	${SYSDIR}/arch/evbmips/evbmips/*.S
141.1Ssimonb
151.1Ssimonb# Directories in which to place tags links
161.1SsimonbDEVBMIPS= evbmips include isa pci
171.1Ssimonb
181.1Ssimonb.include "../../kern/Make.tags.inc"
191.1Ssimonb
201.1Ssimonbtags:
211.3Sdyoung	-echo ${SEVBMIPS} ${SMIPS} ${COMM} | xargs ctags -wadtf ${TEVBMIPS}
221.1Ssimonb	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AEVBMIPS} ${AMIPS} | \
231.1Ssimonb	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
241.3Sdyoung	    >> ${TEVBMIPS}
251.1Ssimonb	sort -o ${TEVBMIPS} ${TEVBMIPS}
261.1Ssimonb
271.1Ssimonblinks:
281.1Ssimonb	-for i in ${DEVBMIPS}; do \
291.1Ssimonb	    cd $$i && rm -f tags; ln -s ../tags tags; done
301.1Ssimonb
311.1Ssimonb
321.2SlukemSUBDIR=	compile include
331.1Ssimonb
341.1Ssimonb.include <bsd.subdir.mk>
35