11.3Sapb#	$NetBSD: Makefile,v 1.3 2008/10/25 22:27:37 apb Exp $
21.1Sitojun
31.1Sitojun# Makefile for hpcsh tags file and boot blocks
41.1Sitojun
51.1Sitojun#.include "../sh3/Makefile.inc"
61.1Sitojun
71.1SitojunTEVBSH3=	../hpcsh/tags
81.1SitojunSEVBSH3=	../hpcsh/hpcsh/*.[ch] ../hpcsh/include/*.h
91.1SitojunAEVBSH3=	../hpcsh/hpcsh/*.[sS]
101.1Sitojun
111.1Sitojun# Directories in which to place tags links
121.1SitojunDEVBSH3=	hpcsh include
131.1Sitojun
141.1Sitojun.include "../../kern/Make.tags.inc"
151.1Sitojun
161.1Sitojuntags:
171.1Sitojun	-ctags -wdtf ${TEVBSH3} ${SEVBSH3} ${COMM}
181.1Sitojun	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AEVBSH3} | \
191.3Sapb	    ${TOOL_SED} -e \
201.3Sapb		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
211.1Sitojun		>> ${TEVBSH3}
221.1Sitojun	sort -o ${TEVBSH3} ${TEVBSH3}
231.1Sitojun
241.1Sitojunlinks:
251.1Sitojun	-for i in ${DEVBSH3}; 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