1 # $NetBSD: Makefile,v 1.4 2011/04/04 19:47:00 dyoung Exp $ 2 3 # Makefile for netwinder tags file and boot blocks 4 5 .include <../arm/Makefile.inc> 6 7 TNETWINDER= ${SYSDIR}/arch/netwinder/tags 8 SNETWINDER= ${SYSDIR}/arch/netwinder/netwinder/*.[ch] \ 9 ${SYSDIR}/arch/netwinder/include/*.h \ 10 ${SYSDIR}/arch/netwinder/pci/*.[ch] 11 ANETWINDER= ${SYSDIR}/arch/netwinder/netwinder/*.S 12 13 # Directories in which to place tags links 14 DNETWINDER= pci include 15 16 .include "../../kern/Make.tags.inc" 17 18 tags: 19 -rm -f ${TNETWINDER} 20 -echo ${SNETWINDER} ${SARM} | xargs ctags -wadtf ${TNETWINDER} 21 -${FINDCOMM} | xargs ctags -wadtf ${TNETWINDER} 22 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANETWINDER} ${AARM} | \ 23 ${TOOL_SED} -e \ 24 "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 25 >> ${TNETWINDER} 26 sort -o ${TNETWINDER} ${TNETWINDER} 27 28 links: 29 -for i in ${DNETWINDER}; do \ 30 cd $$i && rm -f tags; ln -s ../tags tags; done 31 32 33 SUBDIR= compile include 34 35 .include <bsd.subdir.mk> 36