Home | History | Annotate | Line # | Download | only in cats
      1  1.5  dyoung #	$NetBSD: Makefile,v 1.5 2011/04/08 14:58:46 dyoung Exp $
      2  1.1   chris 
      3  1.1   chris # Makefile for cats tags file and boot blocks
      4  1.1   chris 
      5  1.4  dyoung # Find where ARM source files are for inclusion in tags
      6  1.4  dyoung .include <../arm/Makefile.inc>
      7  1.4  dyoung 
      8  1.4  dyoung TCATS=	${SYSDIR}/arch/cats/tags
      9  1.4  dyoung SCATS=	${SYSDIR}/arch/cats/cats/*.[ch] ${SYSDIR}/arch/cats/include/*.h \
     10  1.4  dyoung 	${SYSDIR}/arch/cats/pci/*.[ch]
     11  1.1   chris 
     12  1.1   chris # Directories in which to place tags links
     13  1.5  dyoung DCATS=	include
     14  1.1   chris 
     15  1.1   chris .include "../../kern/Make.tags.inc"
     16  1.1   chris 
     17  1.1   chris tags:
     18  1.4  dyoung 	-rm -f ${TCATS}
     19  1.4  dyoung 	-echo ${SCATS} ${SARM} | xargs ctags -wadtf ${TCATS}
     20  1.4  dyoung 	-${FINDCOMM} | xargs ctags -wadtf ${TCATS}
     21  1.4  dyoung 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ACATS} ${AARM} | \
     22  1.3     apb 	    ${TOOL_SED} -e \
     23  1.4  dyoung 		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
     24  1.1   chris 	    >> ${TCATS}
     25  1.1   chris 	sort -o ${TCATS} ${TCATS}
     26  1.1   chris 
     27  1.1   chris links:
     28  1.1   chris 	-for i in ${DCATS}; do \
     29  1.1   chris 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     30  1.1   chris 
     31  1.1   chris 
     32  1.2   lukem SUBDIR=	compile include
     33  1.1   chris 
     34  1.1   chris .include <bsd.subdir.mk>
     35