11.10Sisaki#	$NetBSD: Makefile,v 1.10 2008/12/20 13:20:58 isaki Exp $
21.1Soki
31.1Soki# Makefile for x68k tags file and boot blocks
41.1Soki
51.5Smycroft# Find where m68k source files are for inclusion in tags
61.5Smycroft.include <../m68k/Makefile.inc>
71.1Soki
81.1SokiTX68K=	../x68k/tags
91.5SmycroftSX68K=	../x68k/x68k/*.[ch] ../x68k/include/*.h \
101.1Soki	../x68k/dev/*.[ch]
111.5SmycroftAX68K=	../x68k/x68k/*.s
121.1Soki
131.5Smycroft# Directories in which to place tags links
141.1SokiDX68K=	x68k dev include
151.1Soki
161.3Smycroft.include "../../kern/Make.tags.inc"
171.1Soki
181.1Sokitags:
191.5Smycroft	-ctags -wdtf ${TX68K} ${SX68K} ${SM68K} ${COMM}
201.5Smycroft	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AX68K} ${AM68K} | \
211.9Sapb	    ${TOOL_SED} -e \
221.9Sapb		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
231.1Soki	    >> ${TX68K}
241.1Soki	sort -o ${TX68K} ${TX68K}
251.1Soki
261.1Sokilinks:
271.1Soki	-for i in ${DX68K}; do \
281.5Smycroft	    cd $$i && rm -f tags; ln -s ../tags tags; done
291.5Smycroft
301.5Smycroft
311.10SisakiSUBDIR=	compile include usr.bin stand
321.1Soki
331.3Smycroft.include <bsd.subdir.mk>
34