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