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