Makefile revision 1.2
11.2Sbouyer#	$NetBSD: Makefile,v 1.2 2005/03/09 22:39:19 bouyer Exp $
21.1Scl
31.1Scl# Makefile for xen tags file
41.1Scl
51.1Scl.include "../../kern/Make.tags.inc"
61.1Scl
71.1Scl.ifmake tags
81.1Scl.include "${SYSDIR}/arch/xen/conf/Makefile.arch.inc"
91.1Scl.endif
101.1Scl
111.1SclTXEN=	${SYSDIR}/arch/xen/tags
121.1Scl
131.1SclSXEN!=	awk '($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \
141.1Scl		${SYSDIR}/arch/xen/conf/files.xen
151.1SclAXEN!=	awk '($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \
161.1Scl		${SYSDIR}/arch/xen/conf/files.xen
171.1SclAXEN+=	${SYSDIR}/arch/xen/${XEN_BUILD}/*.[sS]
181.1Scl
191.1Scl# Directories in which to place tags links
201.1SclDXEN=	xen ${XEN_MACHINE_ARCHS} include
211.1Scl
221.1Scltags:
231.1Scl	rm -f ${TXEN}
241.1Scl	-echo ${SXEN} ${COMM} | xargs ctags -wadtf ${TXEN}
251.1Scl	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AXEN} | \
261.1Scl	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
271.1Scl		>> ${TXEN}
281.1Scl	sort -o ${TXEN} ${TXEN}
291.1Scl
301.1Scllinks:
311.1Scl	-for i in ${DXEN}; do \
321.1Scl	    (cd $$i && rm -f tags; ln -s ../tags tags); done
331.1Scl
341.1Scl
351.2SbouyerSUBDIR=	compile include
361.1Scl
371.1Scl.include <bsd.subdir.mk>
38