1# $NetBSD: Makefile,v 1.1 2000/12/11 18:19:12 marcus Exp $ 2 3# Makefile for dreamcast tags file and boot blocks 4 5#.include "../sh3/Makefile.inc" 6 7TDREAMCAST= ../dreamcast/tags 8SDREAMCAST= ../dreamcast/dreamcast/*.[ch] ../dreamcast/include/*.h 9ADREAMCAST= ../dreamcast/dreamcast/*.[sS] 10 11# Directories in which to place tags links 12DDREAMCAST= dreamcast include 13 14.include "../../kern/Make.tags.inc" 15 16tags: 17 -ctags -wdtf ${TDREAMCAST} ${SDREAMCAST} ${COMM} 18 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ADREAMCAST} | \ 19 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 20 >> ${TDREAMCAST} 21 sort -o ${TDREAMCAST} ${TDREAMCAST} 22 23links: 24 -for i in ${DDREAMCAST}; do \ 25 (cd $$i && rm -f tags; ln -s ../tags tags); done 26 27 28SUBDIR= include # stand 29 30.include <bsd.subdir.mk> 31