1# $NetBSD: Makefile,v 1.1 2001/06/11 17:46:23 matt Exp $ 2 3# Makefile for netwinder tags file and boot blocks 4 5TNETWINDER= ../netwinder/tags 6SNETWINDER= ../netwinder/netwinder/*.[ch] ../netwinder/include/*.h \ 7 ../netwinder/isa/*.[ch] ../netwinder/pci/*.[ch] 8ANETWINDER= ../netwinder/netwinder/*.s 9 10# Directories in which to place tags links 11DNETWINDER= isa pci include 12 13.include "../../kern/Make.tags.inc" 14 15tags: 16 -ctags -wdtf ${TNETWINDER} ${SNETWINDER} ${COMM} 17 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANETWINDER} | \ 18 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 19 >> ${TNETWINDER} 20 sort -o ${TNETWINDER} ${TNETWINDER} 21 22links: 23 -for i in ${DNETWINDER}; do \ 24 cd $$i && rm -f tags; ln -s ../tags tags; done 25 26 27SUBDIR= include 28 29.include <bsd.subdir.mk> 30