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