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