1 1.7.8.2 thorpej # $NetBSD: Makefile,v 1.7.8.2 2003/01/07 21:11:53 thorpej Exp $ 2 1.7.8.2 thorpej 3 1.7.8.2 thorpej # Makefile for mac68k tags file and boot blocks 4 1.7.8.2 thorpej 5 1.7.8.2 thorpej # Find where m68k source files are for inclusion in tags 6 1.7.8.2 thorpej .include <../m68k/Makefile.inc> 7 1.7.8.2 thorpej 8 1.7.8.2 thorpej TMAC68K=${SYSDIR}/arch/mac68k/tags 9 1.7.8.2 thorpej SMAC68K=${SYSDIR}/arch/mac68k/mac68k/*.[ch] ${SYSDIR}/arch/mac68k/include/*.h \ 10 1.7.8.2 thorpej ${SYSDIR}/arch/mac68k/nubus/*.[ch] ${SYSDIR}/arch/mac68k/obio/*.[ch] \ 11 1.7.8.2 thorpej ${SYSDIR}/arch/mac68k/dev/*.[ch] 12 1.7.8.2 thorpej AMAC68K=${SYSDIR}/arch/mac68k/mac68k/*.s ${SYSDIR}/arch/mac68k/dev/*.s 13 1.7.8.2 thorpej 14 1.7.8.2 thorpej # Directories in which to place tags links 15 1.7.8.2 thorpej DMAC68K=mac68k dev include nubus obio 16 1.7.8.2 thorpej 17 1.7.8.2 thorpej .include "../../kern/Make.tags.inc" 18 1.7.8.2 thorpej 19 1.7.8.2 thorpej tags: 20 1.7.8.2 thorpej -ctags -wdtf ${TMAC68K} ${SMAC68K} ${SM68K} ${COMM} 21 1.7.8.2 thorpej egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMAC68K} ${AM68K} | \ 22 1.7.8.2 thorpej sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 23 1.7.8.2 thorpej >> ${TMAC68K} 24 1.7.8.2 thorpej sort -o ${TMAC68K} ${TMAC68K} 25 1.7.8.2 thorpej 26 1.7.8.2 thorpej links: 27 1.7.8.2 thorpej -for i in ${DMAC68K}; do \ 28 1.7.8.2 thorpej (cd $$i && rm -f tags; ln -s ../tags tags); done 29 1.7.8.2 thorpej 30 1.7.8.2 thorpej 31 1.7.8.2 thorpej SUBDIR= compile include 32 1.7.8.2 thorpej 33 1.7.8.2 thorpej .include <bsd.subdir.mk> 34