Makefile revision 1.2
11.2Scgd#	from: @(#)Makefile	7.3 (Berkeley) 6/9/91
21.2Scgd#	$Id: Makefile,v 1.2 1993/05/22 07:59:30 cgd Exp $
31.1Scgd
41.1Scgd# Makefile for i386 tags file
51.1Scgd
61.1Scgdall:
71.1Scgd	@echo "make tags or links only"
81.1Scgd
91.1ScgdTI386=	../i386/tags
101.1ScgdSI386=	../i386/i386/*.[ch] ../i386/include/*.h ../i386/isa/*.[ch]
111.1ScgdAI386=	../i386/i386/*.s
121.1Scgd
131.1Scgd# Directories in which to place i386 tags links
141.1ScgdDI386=	eisa isa mca include
151.1Scgd
161.1Scgdtags:
171.1Scgd	-ctags -dtf ${TI386} ${COMM} ${SI386}
181.1Scgd	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
191.1Scgd	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
201.1Scgd		>> ${TI386}
211.1Scgd	sort -o ${TI386} ${TI386}
221.1Scgd
231.1Scgdlinks:
241.1Scgd	-for i in ${DI386}; do \
251.1Scgd	    cd $$i && rm -f tags; ln -s ../tags tags; done
26