Home | History | Annotate | Line # | Download | only in cats
Makefile revision 1.3
      1  1.3    apb #	$NetBSD: Makefile,v 1.3 2008/10/25 22:27:37 apb Exp $
      2  1.1  chris 
      3  1.1  chris # Makefile for cats tags file and boot blocks
      4  1.1  chris 
      5  1.1  chris TCATS=	../cats/tags
      6  1.1  chris SCATS=	../cats/cats/*.[ch] ../cats/include/*.h \
      7  1.1  chris 		../cats/isa/*.[ch]
      8  1.1  chris ACATS=	../cats/cats/*.S
      9  1.1  chris 
     10  1.1  chris # Directories in which to place tags links
     11  1.1  chris DCATS=	isa include
     12  1.1  chris 
     13  1.1  chris .include "../../kern/Make.tags.inc"
     14  1.1  chris 
     15  1.1  chris tags:
     16  1.1  chris 	-ctags -wdtf ${TCATS} ${SCATS} ${COMM}
     17  1.1  chris 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ACATS} | \
     18  1.3    apb 	    ${TOOL_SED} -e \
     19  1.3    apb 		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     20  1.1  chris 	    >> ${TCATS}
     21  1.1  chris 	sort -o ${TCATS} ${TCATS}
     22  1.1  chris 
     23  1.1  chris links:
     24  1.1  chris 	-for i in ${DCATS}; do \
     25  1.1  chris 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     26  1.1  chris 
     27  1.1  chris 
     28  1.2  lukem SUBDIR=	compile include
     29  1.1  chris 
     30  1.1  chris .include <bsd.subdir.mk>
     31