Home | History | Annotate | Line # | Download | only in mipsco
      1 #	$NetBSD: Makefile,v 1.5 2008/10/25 22:27:38 apb Exp $
      2 
      3 # Makefile for mipsco tags file
      4 
      5 # Find where mips source files are for inclusion in tags
      6 .include <../mips/Makefile.inc>
      7 
      8 TMIPSCO=	../mipsco/tags
      9 SMIPSCO=	../mipsco/mipsco/*.[ch] ../mipsco/include/*.h \
     10 		../mipsco/obio/*.[ch]
     11 AMIPSCO=	../mipsco/mipsco/*.S
     12 
     13 # Directories in which to place tags links
     14 DMIPSCO=	obio include
     15 
     16 .include "../../kern/Make.tags.inc"
     17 
     18 tags:
     19 	-ctags -wdtf ${TMIPSCO} ${SMIPSCO} ${SMIPS} ${COMM}
     20 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMIPSCO} ${AMIPS} | \
     21 	    ${TOOL_SED} -e \
     22 		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     23 	    >> ${TMIPSCO}
     24 	sort -o ${TMIPSCO} ${TMIPSCO}
     25 
     26 links:
     27 	-for i in ${DMIPSCO}; do \
     28 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     29 
     30 SUBDIR=	compile include stand
     31 
     32 .include <bsd.subdir.mk>
     33