xref: /netbsd-src/sys/arch/luna68k/Makefile (revision 2980e352a13e8f0b545a366830c411e7a542ada8)
1#	$NetBSD: Makefile,v 1.2 2003/01/06 17:40:35 lukem Exp $
2
3# Makefile for luna68k tags file
4
5# Find where mips source files are for inclusion in tags
6.include <../m68k/Makefile.inc>
7
8TLUNA68K=	../luna68k/tags
9SLUNA68K=	../luna68k/luna68k/*.[ch] ../luna68k/include/*.h \
10		../luna68k/dev/*.[ch]
11ALUNA68K=	../luna68k/luna68k/*.s
12
13# Directories in which to place tags links
14DLUNA68K=	dev include
15
16.include "../../kern/Make.tags.inc"
17
18tags:
19	-ctags -wdtf ${TLUNA68K} ${SLUNA68K} ${COMM}
20	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ALUNA68K} | \
21	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
22	    >> ${TLUNA68K}
23	sort -o ${TLUNA68K} ${TLUNA68K}
24
25links:
26	-for i in ${DLUNA68K}; do \
27	    cd $$i && rm -f tags; ln -s ../tags tags; done
28
29SUBDIR=	compile include
30
31.include <bsd.subdir.mk>
32