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