Home | History | Annotate | Line # | Download | only in shark
Makefile revision 1.1
      1  1.1  thorpej #	$NetBSD: Makefile,v 1.1 2002/02/10 01:56:59 thorpej Exp $
      2  1.1  thorpej 
      3  1.1  thorpej # Makefile for shark tags file and boot blocks
      4  1.1  thorpej 
      5  1.1  thorpej TSHARK=	../shark/tags
      6  1.1  thorpej SSHARK=	../shark/shark/*.[ch] ../shark/include/*.h \
      7  1.1  thorpej 	../shark/isa/*.[ch] ../shark/ofw/*.[ch]
      8  1.1  thorpej ASHARK=	../shark/isa/*.S ../shark/shark/*.S
      9  1.1  thorpej 
     10  1.1  thorpej # Directories in which to place tags links
     11  1.1  thorpej DSHARK=	isa include ofw
     12  1.1  thorpej 
     13  1.1  thorpej .include "../../kern/Make.tags.inc"
     14  1.1  thorpej 
     15  1.1  thorpej tags:
     16  1.1  thorpej 	-ctags -wdtf ${TSHARK} ${SSHARK} ${COMM}
     17  1.1  thorpej 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASHARK} | \
     18  1.1  thorpej 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     19  1.1  thorpej 	    >> ${TSHARK}
     20  1.1  thorpej 	sort -o ${TSHARK} ${TSHARK}
     21  1.1  thorpej 
     22  1.1  thorpej links:
     23  1.1  thorpej 	-for i in ${DSHARK}; do \
     24  1.1  thorpej 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     25  1.1  thorpej 
     26  1.1  thorpej 
     27  1.1  thorpej SUBDIR=	include
     28  1.1  thorpej 
     29  1.1  thorpej .include <bsd.subdir.mk>
     30