Makefile revision 1.1
1#	$NetBSD: Makefile,v 1.1 1995/03/26 07:12:03 leo Exp $
2#
3#	from: @(#)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 atari tags file
13
14all:
15	@echo "make tags or links only"
16
17TATARI=	$S/arch/atari/tags
18SATARI=	$S/arch/m68k/m68k/*.c $S/arch/m68k/include/*.h \
19	$S/arch/atari/atari/*.[ch] $S/arch/atari/include/*.h \
20	$S/arch/atari/dev/*.[ch]
21AATARI=	$S/arch/m68k/m68k/*.s $S/arch/atari/atari/*.s
22
23# Directories in which to place atari tags links
24DATARI=	atari dev include
25
26TAGS:
27	-etags -dt ${COMM} ${SATARI} ${AATARI}
28	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AATARI} | \
29	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
30	    >> ${TATARI}/tags
31
32tags:
33	-ctags -dtf ${TATARI} ${COMM} ${SATARI}
34	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AATARI} | \
35	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
36	    >> ${TATARI}
37	sort -o ${TATARI} ${TATARI}
38
39links:
40	-for i in ${DATARI}; 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