Home | History | Annotate | Line # | Download | only in netwinder
Makefile revision 1.2.114.1
      1 #	$NetBSD: Makefile,v 1.2.114.1 2008/12/13 01:13:19 haad Exp $
      2 
      3 # Makefile for netwinder tags file and boot blocks
      4 
      5 TNETWINDER=	../netwinder/tags
      6 SNETWINDER=	../netwinder/netwinder/*.[ch] ../netwinder/include/*.h \
      7 		../netwinder/isa/*.[ch] ../netwinder/pci/*.[ch]
      8 ANETWINDER=	../netwinder/netwinder/*.s
      9 
     10 # Directories in which to place tags links
     11 DNETWINDER=	isa pci include
     12 
     13 .include "../../kern/Make.tags.inc"
     14 
     15 tags:
     16 	-ctags -wdtf ${TNETWINDER} ${SNETWINDER} ${COMM}
     17 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANETWINDER} | \
     18 	    ${TOOL_SED} -e \
     19 		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     20 	    >> ${TNETWINDER}
     21 	sort -o ${TNETWINDER} ${TNETWINDER}
     22 
     23 links:
     24 	-for i in ${DNETWINDER}; 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