| 1 | # from: @(#)Makefile 7.3 (Berkeley) 6/9/91 |
| 2 | # $Id$ |
| 3 | |
| 4 | # Makefile for i386 tags file |
| 5 | |
| 6 | all: |
| 7 | @echo "make tags or links only" |
| 8 | |
| 9 | TI386= ../i386/tags |
| 10 | SI386= ../i386/i386/*.[ch] ../i386/include/*.h ../i386/isa/*.[ch] |
| 11 | AI386= ../i386/i386/*.s |
| 12 | |
| 13 | # Directories in which to place i386 tags links |
| 14 | DI386= eisa isa mca include |
| 15 | |
| 16 | tags: |
| 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 | |
| 23 | links: |
| 24 | -for i in ${DI386}; do \ |
| 25 | cd $$i && rm -f tags; ln -s ../tags tags; done |