xref: /original-bsd/sys/i386/Makefile (revision 7eb91141)
1#	@(#)Makefile	7.3 (Berkeley) 06/09/91
2
3# Makefile for i386 tags file
4
5all:
6	@echo "make tags or links only"
7
8TI386=	../i386/tags
9SI386=	../i386/i386/*.[ch] ../i386/include/*.h ../i386/isa/*.[ch]
10AI386=	../i386/i386/*.s
11
12# Directories in which to place i386 tags links
13DI386=	eisa isa mca include
14
15tags:
16	-ctags -dtf ${TI386} ${COMM} ${SI386}
17	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
18	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
19		>> ${TI386}
20	sort -o ${TI386} ${TI386}
21
22links:
23	-for i in ${DI386}; do \
24	    cd $$i && rm -f tags; ln -s ../tags tags; done
25