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