xref: /original-bsd/sys/tahoe/Makefile (revision a1c2194a)
1#	@(#)Makefile	7.3 (Berkeley) 06/09/91
2
3# Makefile for tahoe tags file
4
5all:
6	@echo "make tags or links only"
7
8TTAHOE=	../tahoe/tags
9STAHOE=	../tahoe/tahoe/*.[ch] ../tahoe/include/*.h ../tahoe/if/*.[ch] \
10	../tahoe/vba/*.[ch] ../tahoe/align/*.[ch] ../tahoe/math/*.h
11ATAHOE=	../tahoe/tahoe/*.s ../tahoe/math/*.s
12
13
14# Directories in which to place tahoe tags links
15DTAHOE=	if vba align math include
16
17tags:
18	-ctags -dtf ${TTAHOE} ${COMM} ${STAHOE}
19	egrep "^SCBVEC(.*)" ${ATAHOE} | \
20	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);X\3 \1 /^\2(\3\4$$/;" \
21		>> ${TTAHOE}
22	egrep "^ENTRY(.*)|^JSBENTRY(.*)" ${ATAHOE} | \
23	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
24		>> ${TTAHOE}
25	sort -o ${TTAHOE} ${TTAHOE}
26
27links:
28	-for i in ${DTAHOE}; do \
29	    cd $$i && rm -f tags; ln -s ../tags tags; done
30