Home | History | Annotate | Line # | Download | only in xen
Makefile revision 1.1.2.2
      1  1.1.2.2  he #	$NetBSD: Makefile,v 1.1.2.2 2004/05/22 15:59:21 he Exp $
      2  1.1.2.2  he 
      3  1.1.2.2  he # Makefile for xen tags file
      4  1.1.2.2  he 
      5  1.1.2.2  he .include "../../kern/Make.tags.inc"
      6  1.1.2.2  he 
      7  1.1.2.2  he .ifmake tags
      8  1.1.2.2  he .include "${SYSDIR}/arch/xen/conf/Makefile.arch.inc"
      9  1.1.2.2  he .endif
     10  1.1.2.2  he 
     11  1.1.2.2  he TXEN=	${SYSDIR}/arch/xen/tags
     12  1.1.2.2  he 
     13  1.1.2.2  he SXEN!=	awk '($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \
     14  1.1.2.2  he 		${SYSDIR}/arch/xen/conf/files.xen
     15  1.1.2.2  he AXEN!=	awk '($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \
     16  1.1.2.2  he 		${SYSDIR}/arch/xen/conf/files.xen
     17  1.1.2.2  he AXEN+=	${SYSDIR}/arch/xen/${XEN_BUILD}/*.[sS]
     18  1.1.2.2  he 
     19  1.1.2.2  he # Directories in which to place tags links
     20  1.1.2.2  he DXEN=	xen ${XEN_MACHINE_ARCHS} include
     21  1.1.2.2  he 
     22  1.1.2.2  he tags:
     23  1.1.2.2  he 	rm -f ${TXEN}
     24  1.1.2.2  he 	-echo ${SXEN} ${COMM} | xargs ctags -wadtf ${TXEN}
     25  1.1.2.2  he 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AXEN} | \
     26  1.1.2.2  he 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     27  1.1.2.2  he 		>> ${TXEN}
     28  1.1.2.2  he 	sort -o ${TXEN} ${TXEN}
     29  1.1.2.2  he 
     30  1.1.2.2  he links:
     31  1.1.2.2  he 	-for i in ${DXEN}; do \
     32  1.1.2.2  he 	    (cd $$i && rm -f tags; ln -s ../tags tags); done
     33  1.1.2.2  he 
     34  1.1.2.2  he 
     35  1.1.2.2  he SUBDIR=	compile include stand
     36  1.1.2.2  he 
     37  1.1.2.2  he .include <bsd.subdir.mk>
     38