Makefile revision 1.6
1#	$NetBSD: Makefile,v 1.6 1998/11/15 20:36:30 perry Exp $
2
3# Makefile for mac68k tags file and boot blocks
4
5# Find where m68k source files are for inclusion in tags
6.include <../m68k/Makefile.inc>
7
8SYSDIR?=	/sys
9TMAC68K=${SYSDIR}/arch/mac68k/tags
10SMAC68K=${SYSDIR}/arch/mac68k/mac68k/*.[ch] ${SYSDIR}/arch/mac68k/include/*.h \
11	${SYSDIR}/arch/mac68k/nubus/*.[ch] ${SYSDIR}/arch/mac68k/obio/*.[ch] \
12	${SYSDIR}/arch/mac68k/dev/*.[ch]
13AMAC68K=${SYSDIR}/arch/mac68k/mac68k/*.s ${SYSDIR}/arch/mac68k/dev/*.s
14
15# Directories in which to place tags links
16DMAC68K=mac68k dev include nubus obio
17
18.include "../../kern/Make.tags.inc"
19
20tags:
21	-ctags -wdtf ${TMAC68K} ${SMAC68K} ${SM68K} ${COMM}
22	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMAC68K} ${AM68K} | \
23	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
24	    >> ${TMAC68K}
25	sort -o ${TMAC68K} ${TMAC68K}
26
27links:
28	-for i in ${DMAC68K}; do \
29	    (cd $$i && rm -f tags; ln -s ../tags tags); done
30
31
32SUBDIR=	include
33
34.include <bsd.subdir.mk>
35