Home | History | Annotate | Line # | Download | only in cobalt
      1 #	$NetBSD: Makefile,v 1.6 2011/04/04 19:45:00 dyoung Exp $
      2 
      3 # Makefile for cobalt tags file
      4 
      5 # Find where mips source files are for inclusion in tags
      6 .include <../mips/Makefile.inc>
      7 
      8 TCOBALT=	${SYSDIR}/arch/cobalt/tags
      9 SCOBALT=	${SYSDIR}/arch/cobalt/cobalt/*.[ch] \
     10 		${SYSDIR}/arch/cobalt/include/*.h \
     11 		${SYSDIR}/arch/cobalt/dev/*.[ch] \
     12 		${SYSDIR}/arch/cobalt/pci/*.[ch]
     13 ACOBALT=	${SYSDIR}/arch/cobalt/cobalt/*.S
     14 
     15 # Directories in which to place tags links
     16 DCOBALT=	pci include
     17 
     18 .include "../../kern/Make.tags.inc"
     19 
     20 tags:
     21 	-rm -f ${TCOBALT}
     22 	-echo ${SCOBALT} ${SMIPS} | xargs ctags -wadtf ${TCOBALT}
     23 	-${FINDCOMM} | xargs ctags -wadtf ${TCOBALT}
     24 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ACOBALT} ${AMIPS} | \
     25 	    ${TOOL_SED} -e \
     26 		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     27 		>> ${TCOBALT}
     28 	sort -o ${TCOBALT} ${TCOBALT}
     29 
     30 links:
     31 	-for i in ${DCOBALT}; do \
     32 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     33 
     34 SUBDIR=	compile include stand
     35 
     36 .include <bsd.subdir.mk>
     37