Home | History | Annotate | Line # | Download | only in arc
Makefile revision 1.5
      1 #	$NetBSD: Makefile,v 1.5 2000/01/23 20:07:59 soda Exp $
      2 
      3 # Makefile for pica tags file and boot blocks
      4 
      5 # Find where mips source files are for inclusion in tags
      6 .include <../mips/Makefile.inc>
      7 
      8 TPICA=	../pica/tags
      9 SPICA=	../pica/pica/*.[ch] ../pica/include/*.[ch] \
     10 	../pica/dev/*.[ch] ../pica/ultrix/*.[ch]
     11 APICA=	../pica/pica/*.s
     12 
     13 # Directories in which to place tags links
     14 DPICA=	dev dist include pica
     15 
     16 .include "../../kern/Make.tags.inc"
     17 
     18 tags:
     19 	-ctags -wdtf ${TPICA} ${SPICA} ${SMIPS} ${COMM}
     20 	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${APICA} ${AMIPS} | \
     21 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     22 	    >> ${TPICA}
     23 	sort -o ${TPICA} ${TPICA}
     24 
     25 links:
     26 	-for i in ${DPICA}; do \
     27 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     28 
     29 
     30 SUBDIR=	include
     31 
     32 .include <bsd.subdir.mk>
     33