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