Makefile revision 1.2
1#	$NetBSD: Makefile,v 1.2 1994/10/26 08:45:48 cgd Exp $
2
3#	@(#)Makefile	7.3 (Berkeley) 6/9/91
4S=${BSDSRCDIR}/sys
5COMM=	$S/vm/*.[ch] $S/ufs/*/*.[ch] $S/sys/*.h $S/compat/sunos/*.[ch] \
6	$S/isofs/*/*.[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/arch/m68k/*.[ch] $S/lib/libkern/*.[ch]
11
12# Makefile for mac68k tags file
13
14all:
15	@echo "make tags or links only"
16
17TMAC68K=	$S/arch/mac68k/tags
18SMAC68K=	$S/arch/m68k/m68k/*.c $S/arch/m68k/include/*.h \
19		$S/arch/mac68k/mac68k/*.[ch] $S/arch/mac68k/include/*.h \
20		$S/arch/mac68k/dev/*.[ch]
21AMAC68K=	$S/arch/m68k/m68k/*.s $S/arch/mac68k/mac68k/*.s
22
23# Directories in which to place mac68k tags links
24DMAC68K=	mac68k dev include
25
26TAGS:
27	-etags -dt ${COMM} ${SMAC68K} ${AMAC68K}
28	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMAC68K} | \
29	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
30	    >> ${TMAC68K}/tags
31
32tags:
33	-ctags -dtf ${TMAC68K} ${COMM} ${SMAC68K}
34	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMAC68K} | \
35	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
36	    >> ${TMAC68K}
37	sort -o ${TMAC68K} ${TMAC68K}
38
39links:
40	-for i in ${DMAC68K}; 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