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