Commit | Line | Data |
---|---|---|
fa84329d | 1 | # @(#)Makefile 8.1 (Berkeley) %G% |
c234812c | 2 | |
b115a4b2 | 3 | # Makefile for sparc links, tags file |
c234812c | 4 | |
f5934919 | 5 | .include "../kern/Make.tags.inc" |
c234812c CT |
6 | |
7 | all: | |
b115a4b2 KB |
8 | @echo "make links or tags only" |
9 | ||
10 | DIRS= conf dev fpu include rcons sbus sparc sunos | |
11 | ||
12 | links:: | |
13 | -for i in ${DIRS}; do \ | |
14 | (cd $$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done | |
c234812c | 15 | |
f5934919 KB |
16 | SPARC= /sys/sparc/dev/*.[ch] /sys/sparc/fpu/*.[ch] \ |
17 | /sys/sparc/include/*.[ch] /sys/sparc/rcons/*.[ch] \ | |
18 | /sys/sparc/sbus/*.[ch] /sys/sparc/sparc/*.[ch] \ | |
19 | /sys/sparc/sunos/*.[ch] | |
20 | ASPARC= /sys/sparc/sparc/*.s | |
21 | ||
22 | tags:: | |
b115a4b2 | 23 | -ctags -wdt ${COMM} ${SPARC} |
f5934919 KB |
24 | egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASPARC} | \ |
25 | sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ | |
26 | >> tags | |
27 | sort -o tags tags | |
b115a4b2 KB |
28 | chown bin.wsrc tags |
29 | chmod 444 tags |