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