Home | History | Annotate | Line # | Download | only in cats
Makefile revision 1.3.22.1
      1  1.3.22.1  jruoho #	$NetBSD: Makefile,v 1.3.22.1 2011/06/06 09:05:11 jruoho Exp $
      2       1.1   chris 
      3       1.1   chris # Makefile for cats tags file and boot blocks
      4       1.1   chris 
      5  1.3.22.1  jruoho # Find where ARM source files are for inclusion in tags
      6  1.3.22.1  jruoho .include <../arm/Makefile.inc>
      7  1.3.22.1  jruoho 
      8  1.3.22.1  jruoho TCATS=	${SYSDIR}/arch/cats/tags
      9  1.3.22.1  jruoho SCATS=	${SYSDIR}/arch/cats/cats/*.[ch] ${SYSDIR}/arch/cats/include/*.h \
     10  1.3.22.1  jruoho 	${SYSDIR}/arch/cats/pci/*.[ch]
     11       1.1   chris 
     12       1.1   chris # Directories in which to place tags links
     13  1.3.22.1  jruoho 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.3.22.1  jruoho 	-rm -f ${TCATS}
     19  1.3.22.1  jruoho 	-echo ${SCATS} ${SARM} | xargs ctags -wadtf ${TCATS}
     20  1.3.22.1  jruoho 	-${FINDCOMM} | xargs ctags -wadtf ${TCATS}
     21  1.3.22.1  jruoho 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ACATS} ${AARM} | \
     22       1.3     apb 	    ${TOOL_SED} -e \
     23  1.3.22.1  jruoho 		"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