Makefile revision 1.9
11.9Smycroft#	$NetBSD: Makefile,v 1.9 1997/10/11 09:11:19 mycroft Exp $
21.1Scgd
31.5Sthorpej# Makefile for hp300 tags file and boot blocks
41.1Scgd
51.9Smycroft# Find where m68k source files are for inclusion in tags
61.9Smycroft.include <../m68k/Makefile.inc>
71.1Scgd
81.1ScgdTHP300=	../hp300/tags
91.1ScgdSHP300=	../hp300/hp300/*.[ch] ../hp300/include/*.h \
101.5Sthorpej	../hp300/dev/*.[ch]
111.1ScgdAHP300=	../hp300/hp300/*.s
121.1Scgd
131.9Smycroft# Directories in which to place tags links
141.5SthorpejDHP300=	dev hp300 include
151.1Scgd
161.7Smycroft.include "../../kern/Make.tags.inc"
171.7Smycroft
181.1Scgdtags:
191.9Smycroft	-ctags -wdtf ${THP300} ${SHP300} ${SM68K} ${COMM}
201.9Smycroft	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AHP300} ${AM68K} | \
211.1Scgd	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
221.7Smycroft	    >> ${THP300}
231.1Scgd	sort -o ${THP300} ${THP300}
241.1Scgd
251.1Scgdlinks:
261.1Scgd	-for i in ${DHP300}; do \
271.5Sthorpej	    cd $$i && rm -f tags; ln -s ../tags tags; done
281.9Smycroft
291.9Smycroft
301.9SmycroftSUBDIR= stand
311.3Shpeyerl
321.7Smycroft.include <bsd.subdir.mk>
33