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