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