xref: /csrg-svn/sys/sparc/Makefile (revision 63392)
1*63392Sbostic#	@(#)Makefile	8.1 (Berkeley) 06/11/93
255100Storek
363391Sbostic# Makefile for sparc links, tags file
455100Storek
555679Sbostic.include "../kern/Make.tags.inc"
655100Storek
755100Storekall:
863391Sbostic	@echo "make links or tags only"
955100Storek
1063391SbosticDIRS=	conf dev fpu include rcons sbus sparc sunos
1163391Sbostic
1263391Sbosticlinks::
1363391Sbostic	-for i in ${DIRS}; do \
1463391Sbostic	    (cd $$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done
1563391Sbostic
1655679SbosticSPARC=	/sys/sparc/dev/*.[ch] /sys/sparc/fpu/*.[ch] \
1755679Sbostic	/sys/sparc/include/*.[ch] /sys/sparc/rcons/*.[ch] \
1855679Sbostic	/sys/sparc/sbus/*.[ch] /sys/sparc/sparc/*.[ch] \
1955679Sbostic	/sys/sparc/sunos/*.[ch]
2055679SbosticASPARC=	/sys/sparc/sparc/*.s
2155679Sbostic
2255679Sbostictags::
2363391Sbostic	-ctags -wdt ${COMM} ${SPARC}
2455679Sbostic	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASPARC} | \
2555679Sbostic	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
2655679Sbostic		>> tags
2755679Sbostic	sort -o tags tags
2863391Sbostic	chown bin.wsrc tags
2963391Sbostic	chmod 444 tags
30