Makefile revision 1.10
1#	$NetBSD: Makefile,v 1.10 1994/10/26 02:01:24 cgd Exp $
2
3#	@(#)Makefile	7.3 (Berkeley) 6/9/91
4
5S=${BSDSRCDIR}/sys
6COMM=	$S/vm/*.[ch] $S/ufs/*.[ch] $S/sys/*.h $S/compat/sunos/*.[ch] \
7	$S/nfs/*.[ch] $S/netns/*.[ch] $S/netiso/*.[ch] \
8	$S/netiso/xebec/*.[ch] $S/netinet/*.[ch] $S/netccitt/*.[ch] \
9	$S/net/*.[ch] $S/miscfs/*/*.[ch] $S/kern/*.[ch] $S/dev/*.[ch] \
10	$S/scsi/*.[ch] $S/lib/libkern/m68k/*.[ch] $S/lib/libkern/*.[ch]
11
12# Makefile for amiga tags file
13
14all:
15	@echo "make tags or links only"
16
17TAMIGA=	$S/arch/amiga/tags
18SAMIGA=	$S/arch/m68k/m68k/*.c $S/arch/m68k/include/*.h \
19	$S/arch/amiga/amiga/*.[ch] $S/arch/amiga/include/*.h \
20	$S/arch/amiga/dev/*.[ch]
21AAMIGA=	$S/arch/m68k/m68k/*.s $S/arch/amiga/amiga/*.s
22
23# Directories in which to place amiga tags links
24DAMIGA=	amiga dev include
25
26TAGS:
27	-etags -dt ${COMM} ${SAMIGA} ${AAMIGA}
28	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMIGA} | \
29	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
30	    >> ${TAMIGA}/tags
31
32tags:
33	-ctags -dtf ${TAMIGA} ${COMM} ${SAMIGA}
34	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMIGA} | \
35	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
36	    >> ${TAMIGA}
37	sort -o ${TAMIGA} ${TAMIGA}
38
39links:
40	-for i in ${DAMIGA}; do \
41	    rm -f $$i/tags; rm -f $$i/TAGS ; \
42	    ln -s ../tags $$i/tags; ln -s ../TAGS $$i/TAGS; done
43
44.include <bsd.prog.mk>
45
46