Makefile revision 1.7
1#	from: @(#)Makefile	7.3 (Berkeley) 6/9/91
2#	$Id: Makefile,v 1.7 1994/03/09 15:56:08 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]
8
9# Makefile for amiga tags file
10
11all:
12	@echo "make tags or links only"
13
14TAMIGA=	$S/arch/amiga/tags
15SAMIGA= $S/arch/m68k/m68k/*.c $S/arch/m68k/include/*.h \
16        $S/arch/amiga/amiga/*.[ch] $S/arch/amiga/include/*.h \
17        $S/arch/amiga/dev/*.[ch]
18AAMIGA=	$S/arch/m68k/m68k/*.s $S/arch/amiga/amiga/*.s
19
20# Directories in which to place amiga tags links
21DAMIGA=	amiga dev include
22
23TAGS:
24        -etags -dt ${COMM} ${SAMIGA} ${AAMIGA}
25#       egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMIGA} | \
26#          sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
27#          >> ${TAMIGA}/tags
28
29tags:
30        -ctags -dtf ${TAMIGA}/tags ${COMM} ${SAMIGA}
31        egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMIGA} | \
32           sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
33           >> ${TAMIGA}/tags
34        sort -o ${TAMIGA}/tags ${TAMIGA}/tags
35
36links:
37        -for i in ${DAMIGA}; do \
38            rm -f $$i/tags; rm -f $$i/TAGS ; \
39            ln -s ../tags $$i/tags; ln -s ../TAGS $$i/TAGS; done
40
41.include <bsd.prog.mk>
42
43