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