Makefile revision 1.1
11.1Sthorpej#	$NetBSD: Makefile,v 1.1 2002/02/10 01:56:59 thorpej Exp $
21.1Sthorpej
31.1Sthorpej# Makefile for shark tags file and boot blocks
41.1Sthorpej
51.1SthorpejTSHARK=	../shark/tags
61.1SthorpejSSHARK=	../shark/shark/*.[ch] ../shark/include/*.h \
71.1Sthorpej	../shark/isa/*.[ch] ../shark/ofw/*.[ch]
81.1SthorpejASHARK=	../shark/isa/*.S ../shark/shark/*.S
91.1Sthorpej
101.1Sthorpej# Directories in which to place tags links
111.1SthorpejDSHARK=	isa include ofw
121.1Sthorpej
131.1Sthorpej.include "../../kern/Make.tags.inc"
141.1Sthorpej
151.1Sthorpejtags:
161.1Sthorpej	-ctags -wdtf ${TSHARK} ${SSHARK} ${COMM}
171.1Sthorpej	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASHARK} | \
181.1Sthorpej	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
191.1Sthorpej	    >> ${TSHARK}
201.1Sthorpej	sort -o ${TSHARK} ${TSHARK}
211.1Sthorpej
221.1Sthorpejlinks:
231.1Sthorpej	-for i in ${DSHARK}; do \
241.1Sthorpej	    cd $$i && rm -f tags; ln -s ../tags tags; done
251.1Sthorpej
261.1Sthorpej
271.1SthorpejSUBDIR=	include
281.1Sthorpej
291.1Sthorpej.include <bsd.subdir.mk>
30