Commit | Line | Data |
---|---|---|
60ba453d KM |
1 | # @(#)Makefile 7.1 (Berkeley) %G% |
2 | ||
3 | # Makefile for pmax tags file | |
4 | ||
5 | .include "../kern/Make.tags.inc" | |
6 | ||
7 | all: | |
8 | @echo "make tags or links only" | |
9 | ||
10 | TPMAX= ../pmax/tags | |
11 | SPMAX= ../pmax/pmax/*.[ch] ../pmax/include/*.h ../pmax/dev/*.[ch] | |
12 | APMAX= ../pmax/pmax/*.s | |
13 | ||
14 | # Directories in which to place pmax tags links | |
15 | DPMAX= pmax dev include | |
16 | ||
17 | tags: FRC | |
18 | -ctags -dtf ${TPMAX} ${COMM} ${SPMAX} | |
19 | egrep "^LEAF(.*)|^ALEAF(.*)|^NON_LEAF(.*)" ${APMAX} | \ | |
20 | sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ | |
21 | >> ${TPMAX} | |
22 | sort -o ${TPMAX} ${TPMAX} | |
23 | ||
24 | links: | |
25 | -for i in ${DPMAX}; do \ | |
26 | cd ../$$i && rm -f tags; ln -s ../tags tags; done | |
27 | ||
28 | FRC: |