Home | History | Annotate | Line # | Download | only in newsmips
Makefile revision 1.2
      1 #	$NetBSD: Makefile,v 1.2 1998/06/12 23:22:41 cgd Exp $
      2 
      3 # Makefile for newsmips tags file
      4 
      5 # Find where mips source files are for inclusion in tags
      6 .include <../mips/Makefile.inc>
      7 
      8 TNEWSMIPS=	../newsmips/tags
      9 SNEWSMIPS=	../newsmips/newsmips/*.[ch] ../newsmips/include/*.h \
     10 		../newsmips/dev/*.[ch]
     11 ANEWSMIPS=	../newsmips/newsmips/*.S
     12 
     13 # Directories in which to place tags links
     14 DNEWSMIPS=	dev include
     15 
     16 .include "../../kern/Make.tags.inc"
     17 
     18 tags:
     19 	-ctags -wdtf ${TNEWSMIPS} ${SNEWSMIPS} ${SMIPS} ${COMM}
     20 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANEWSMIPS} ${AMIPS} | \
     21 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     22 	    >> ${TNEWSMIPS}
     23 	sort -o ${TNEWSMIPS} ${TNEWSMIPS}
     24 
     25 links:
     26 	-for i in ${DNEWSMIPS}; do \
     27 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     28 
     29 SUBDIR=	include
     30 
     31 .include <bsd.subdir.mk>
     32