11.3Sapb#	$NetBSD: Makefile,v 1.3 2008/10/25 22:27:38 apb Exp $
21.1Sitojun
31.1Sitojun# Makefile for mmeye tags file and boot blocks
41.1Sitojun
51.1Sitojun#.include "../sh3/Makefile.inc"
61.1Sitojun
71.1SitojunTMMEYE=	../mmeye/tags
81.1SitojunSMMEYE=	../mmeye/mmeye/*.[ch] ../mmeye/include/*.h
91.1SitojunAMMEYE=	../mmeye/mmeye/*.[sS]
101.1Sitojun
111.1Sitojun# Directories in which to place tags links
121.1SitojunDMMEYE=	mmeye include
131.1Sitojun
141.1Sitojun.include "../../kern/Make.tags.inc"
151.1Sitojun
161.1Sitojuntags:
171.1Sitojun	-ctags -wdtf ${TMMEYE} ${SMMEYE} ${COMM}
181.1Sitojun	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMMEYE} | \
191.3Sapb	    ${TOOL_SED} -e \
201.3Sapb		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
211.1Sitojun		>> ${TMMEYE}
221.1Sitojun	sort -o ${TMMEYE} ${TMMEYE}
231.1Sitojun
241.1Sitojunlinks:
251.1Sitojun	-for i in ${DMMEYE}; do \
261.1Sitojun	    (cd $$i && rm -f tags; ln -s ../tags tags); done
271.1Sitojun
281.1Sitojun
291.2SlukemSUBDIR=	compile include stand
301.1Sitojun
311.1Sitojun.include <bsd.subdir.mk>
32