xref: /netbsd/sys/arch/shark/Makefile (revision bf9ec67e)
1#	$NetBSD: Makefile,v 1.1 2002/02/10 01:56:59 thorpej Exp $
2
3# Makefile for shark tags file and boot blocks
4
5TSHARK=	../shark/tags
6SSHARK=	../shark/shark/*.[ch] ../shark/include/*.h \
7	../shark/isa/*.[ch] ../shark/ofw/*.[ch]
8ASHARK=	../shark/isa/*.S ../shark/shark/*.S
9
10# Directories in which to place tags links
11DSHARK=	isa include ofw
12
13.include "../../kern/Make.tags.inc"
14
15tags:
16	-ctags -wdtf ${TSHARK} ${SSHARK} ${COMM}
17	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASHARK} | \
18	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
19	    >> ${TSHARK}
20	sort -o ${TSHARK} ${TSHARK}
21
22links:
23	-for i in ${DSHARK}; do \
24	    cd $$i && rm -f tags; ln -s ../tags tags; done
25
26
27SUBDIR=	include
28
29.include <bsd.subdir.mk>
30