Makefile revision 1.5
11.5Sdyoung#	$NetBSD: Makefile,v 1.5 2007/06/24 01:03:35 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.5Sdyoung	-rm -f ${TEVBMIPS}
221.5Sdyoung	-echo ${SEVBMIPS} ${SMIPS} | xargs ctags -wadtf ${TEVBMIPS}
231.5Sdyoung	-${FINDCOMM} | xargs ctags -wadtf ${TEVBMIPS}
241.1Ssimonb	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AEVBMIPS} ${AMIPS} | \
251.1Ssimonb	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
261.3Sdyoung	    >> ${TEVBMIPS}
271.1Ssimonb	sort -o ${TEVBMIPS} ${TEVBMIPS}
281.1Ssimonb
291.1Ssimonblinks:
301.1Ssimonb	-for i in ${DEVBMIPS}; do \
311.1Ssimonb	    cd $$i && rm -f tags; ln -s ../tags tags; done
321.1Ssimonb
331.1Ssimonb
341.2SlukemSUBDIR=	compile include
351.1Ssimonb
361.1Ssimonb.include <bsd.subdir.mk>
37