11.4Smatt# $NetBSD: Makefile,v 1.4 2013/06/30 21:56:44 matt 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.3Sapb ${TOOL_SED} -e \ 191.3Sapb "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 201.1Sthorpej >> ${TSHARK} 211.1Sthorpej sort -o ${TSHARK} ${TSHARK} 221.1Sthorpej 231.1Sthorpejlinks: 241.1Sthorpej -for i in ${DSHARK}; do \ 251.1Sthorpej cd $$i && rm -f tags; ln -s ../tags tags; done 261.1Sthorpej 271.1Sthorpej 281.4SmattSUBDIR= compile include 291.4Smatt#SUBDIR+= stand 301.1Sthorpej 311.1Sthorpej.include <bsd.subdir.mk> 32