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