Makefile revision 1.18
11.18Saymeric#	$NetBSD: Makefile,v 1.18 2005/09/06 21:57:47 aymeric Exp $
21.10Scgd
31.12Smycroft# Makefile for amiga tags file and boot blocks
41.1Smw
51.14Smycroft# Find where m68k source files are for inclusion in tags
61.14Smycroft.include <../m68k/Makefile.inc>
71.1Smw
81.17SaymericTAMIGA=	${SYSDIR}/arch/amiga/tags
91.17SaymericSAMIGA=	${SYSDIR}/arch/amiga/amiga/*.[ch] ${SYSDIR}/arch/amiga/include/*.h \
101.17Saymeric	${SYSDIR}/arch/amiga/dev/*.[ch]
111.17SaymericAAMIGA=	${SYSDIR}/arch/amiga/amiga/*.s
121.1Smw
131.14Smycroft# Directories in which to place tags links
141.5SchoppsDAMIGA=	amiga dev include
151.1Smw
161.12Smycroft.include "../../kern/Make.tags.inc"
171.7Schopps
181.1Smwtags:
191.18Saymeric	-echo ${COMM} | xargs ctags -wdtf ${TAMIGA} ${SAMIGA} ${SM68K}
201.14Smycroft	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMIGA} ${AM68K} | \
211.8Schopps	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
221.9Schopps	    >> ${TAMIGA}
231.9Schopps	sort -o ${TAMIGA} ${TAMIGA}
241.1Smw
251.1Smwlinks:
261.8Schopps	-for i in ${DAMIGA}; do \
271.17Saymeric	    cd ${.CURDIR}/$$i && rm -f tags; ln -s ../tags tags; done
281.14Smycroft
291.14Smycroft
301.16SlukemSUBDIR=	compile include stand
311.7Schopps
321.12Smycroft.include <bsd.subdir.mk>
33