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