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