Commit | Line | Data |
---|---|---|
7ba7528e KM |
1 | # |
2 | # Copyright (c) 1986 Regents of the University of California. | |
3 | # All rights reserved. The Berkeley software License Agreement | |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
16b746e7 | 6 | # @(#)Makefile 7.5 (Berkeley) %G% |
7ba7528e KM |
7 | # |
8 | # Put the ../h stuff near the end so that subroutine definitions win when | |
9 | # there is a struct tag with the same name (eg., vmmeter). The real | |
10 | # solution would probably be for ctags to generate "struct vmmeter" tags. | |
7ba7528e | 11 | |
3d62d981 KB |
12 | TVAX= ../vax/tags |
13 | SVAX= ../net/*.[ch] ../netimp/*.[ch] ../netinet/*.[ch] ../netns/*.[ch] \ | |
14 | ../sys/*.[ch] ../vaxif/*.[ch] ../vaxmba/*.[ch] ../vaxuba/*.[ch] \ | |
15 | ../vax/*.[ch] ../h/*.h | |
16 | AVAX= ../vax/*.s | |
17 | ||
18 | TTAHOE= ../tahoe/tags | |
19 | STAHOE= ../net/*.[ch] ../netimp/*.[ch] ../netinet/*.[ch] ../netns/*.[ch] \ | |
20 | ../sys/*.[ch] ../tahoeif/*.[ch] ../tahoevba/*.[ch] ../tahoe/*.[ch] \ | |
21 | ../h/*.h | |
22 | ATAHOE= ../tahoe/*.s | |
23 | ||
24 | DGEN= h sys net netimp netinet netns | |
25 | DVAX= vaxif vaxmba vaxuba | |
26 | DTAHOE= tahoeif tahoevba | |
7ba7528e KM |
27 | |
28 | all: | |
29 | @echo "make tags or links only" | |
30 | ||
31 | tags: FRC | |
3d62d981 | 32 | -mv ${TVAX} ${TVAX}.old |
16b746e7 KB |
33 | ctags -dtf ${TVAX} ${SVAX} |
34 | egrep "^SCBVEC(.*)" ${AVAX} | \ | |
35 | sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);X\3 \1 /^\2(\3\4$$/;" \ | |
56f0eb50 | 36 | >> ${TVAX} |
16b746e7 KB |
37 | egrep "^ENTRY(.*)|^JSBENTRY(.*)" ${AVAX} | \ |
38 | sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ | |
3d62d981 | 39 | >> ${TVAX} |
16b746e7 | 40 | sort -o ${TVAX} ${TVAX} |
3d62d981 KB |
41 | rm -f ${TVAX}.old |
42 | -mv ${TTAHOE} ${TTAHOE}.old | |
16b746e7 KB |
43 | ctags -dtf ${TTAHOE} ${STAHOE} |
44 | egrep "^SCBVEC(.*)" ${ATAHOE} | \ | |
45 | sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);X\3 \1 /^\2(\3\4$$/;" \ | |
56f0eb50 | 46 | >> ${TTAHOE} |
16b746e7 KB |
47 | egrep "^ENTRY(.*)|^JSBENTRY(.*)" ${ATAHOE} | \ |
48 | sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ | |
3d62d981 | 49 | >> ${TTAHOE} |
16b746e7 | 50 | sort -o ${TTAHOE} ${TTAHOE} |
3d62d981 | 51 | rm -f ${TTAHOE}.old |
7ba7528e KM |
52 | |
53 | links: | |
3d62d981 KB |
54 | -for i in ${DVAX}; do rm -f ../$$i/tags; \ |
55 | ln -s ../vax/tags ../$$i/tags; done | |
56 | -for i in ${DTAHOE}; do rm -f ../$$i/tags; \ | |
57 | ln -s ../tahoe/tags ../$$i/tags; done | |
58 | -for i in ${DGEN}; do rm -f ../$$i/tags; \ | |
59 | ln -s ../machine/tags ../$$i/tags; done | |
7ba7528e KM |
60 | |
61 | FRC: |