Makefile revision 1.7
11.7Sdyoung#	$NetBSD: Makefile,v 1.7 2009/05/20 03:41:25 dyoung Exp $
21.7Sdyoung
31.7Sdyoung.include <bsd.own.mk>
41.1Scl
51.1Scl# Makefile for xen tags file
61.1Scl
71.1Scl.include "../../kern/Make.tags.inc"
81.1Scl
91.1Scl.ifmake tags
101.1Scl.include "${SYSDIR}/arch/xen/conf/Makefile.arch.inc"
111.1Scl.endif
121.1Scl
131.1SclTXEN=	${SYSDIR}/arch/xen/tags
141.1Scl
151.7SdyoungSXEN!=	${TOOL_AWK} '($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \
161.1Scl		${SYSDIR}/arch/xen/conf/files.xen
171.7SdyoungAXEN!=	${TOOL_AWK} '($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \
181.1Scl		${SYSDIR}/arch/xen/conf/files.xen
191.1SclAXEN+=	${SYSDIR}/arch/xen/${XEN_BUILD}/*.[sS]
201.1Scl
211.1Scl# Directories in which to place tags links
221.1SclDXEN=	xen ${XEN_MACHINE_ARCHS} include
231.1Scl
241.1Scltags:
251.6Sdyoung	-rm -f ${TXEN}
261.6Sdyoung	-echo ${SXEN} | xargs ctags -wadtf ${TXEN}
271.6Sdyoung	${FINDCOMM} | xargs ctags -wadtf ${TXEN}
281.1Scl	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AXEN} | \
291.7Sdyoung	    ${TOOL_SED} -e \
301.5Sapb		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
311.1Scl		>> ${TXEN}
321.1Scl	sort -o ${TXEN} ${TXEN}
331.1Scl
341.1Scllinks:
351.1Scl	-for i in ${DXEN}; do \
361.1Scl	    (cd $$i && rm -f tags; ln -s ../tags tags); done
371.1Scl
381.1Scl
391.2SbouyerSUBDIR=	compile include
401.1Scl
411.1Scl.include <bsd.subdir.mk>
42