xref: /csrg-svn/sys/tahoe/Makefile (revision 63394)
1*63394Sbostic#	@(#)Makefile	8.1 (Berkeley) 06/11/93
249485Sbostic
363393Sbostic# Makefile for tahoe links, tags file
449485Sbostic
553372Skarels.include "../kern/Make.tags.inc"
653372Skarels
749485Sbosticall:
863393Sbostic	@echo "make links or tags only"
949485Sbostic
1063393SbosticDIRS=	align conf dist if include math tahoe vba
1163393Sbostic
1263393Sbosticlinks::
1363393Sbostic	-for i in ${DIRS}; do \
1463393Sbostic	    (cd $$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done
1563393Sbostic
1663393SbosticTAHOE=	/sys/tahoe/if/*.[ch] /sys/tahoe/include/*.[ch] \
1763393Sbostic	/sys/tahoe/tahoe/*.[ch] /sys/tahoe/vba/*.[ch]
1855680SbosticATAHOE=	/sys/tahoe/tahoe/*.s
1949485Sbostic
2055680Sbostictags::
2163393Sbostic	-ctags -wdt ${COMM} ${TAHOE}
2255680Sbostic	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ATAHOE} | \
2349485Sbostic	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
2455680Sbostic		>> tags
2555680Sbostic	sort -o tags tags
2663393Sbostic	chown bin.wsrc tags
2763393Sbostic	chmod 444 tags
28