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