Commit | Line | Data |
---|---|---|
ad787160 | 1 | # @(#)Makefile 8.1 (Berkeley) 6/11/93 |
b4a50292 | 2 | |
ad787160 | 3 | # Makefile for tahoe links, tags file |
b4a50292 | 4 | |
e8dffedd MK |
5 | .include "../kern/Make.tags.inc" |
6 | ||
b4a50292 | 7 | all: |
ad787160 | 8 | @echo "make links or tags only" |
b4a50292 | 9 | |
ad787160 C |
10 | DIRS= align conf dist if include math tahoe vba |
11 | ||
12 | links:: | |
13 | -for i in ${DIRS}; do \ | |
14 | (cd $$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done | |
15 | ||
16 | TAHOE= /sys/tahoe/if/*.[ch] /sys/tahoe/include/*.[ch] \ | |
17 | /sys/tahoe/tahoe/*.[ch] /sys/tahoe/vba/*.[ch] | |
f5934919 | 18 | ATAHOE= /sys/tahoe/tahoe/*.s |
b4a50292 | 19 | |
f5934919 | 20 | tags:: |
ad787160 | 21 | -ctags -wdt ${COMM} ${TAHOE} |
f5934919 | 22 | egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ATAHOE} | \ |
b4a50292 | 23 | sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ |
f5934919 KB |
24 | >> tags |
25 | sort -o tags tags | |
ad787160 C |
26 | chown bin.wsrc tags |
27 | chmod 444 tags |