1# $NetBSD: Makefile,v 1.7 1998/06/12 23:22:45 cgd Exp $ 2 3# Makefile for sparc tags file and boot blocks 4 5TSPARC= ../sparc/tags 6SSPARC= ../sparc/dev/*.[ch] ../sparc/fpu/*.[ch] \ 7 ../sparc/include/*.[ch] ../sparc/sparc/*.[ch] 8ASPARC= ../sparc/sparc/*.s 9 10# Directories in which to place tags links 11DSPARC= conf dev fpu include sparc 12 13tags: 14 -ctags -wdtf ${TSPARC} ${SSPARC} ${COMM} 15 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASPARC} | \ 16 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 17 >> tags 18 sort -o ${TSPARC} ${TSPARC} 19 20links: 21 -for i in ${DSPARC}; do \ 22 cd $$i && rm -f tags; ln -s ../tags tags; done 23 24 25SUBDIR= include stand 26 27.include <bsd.subdir.mk> 28