1 # $NetBSD: Makefile,v 1.2 2008/10/25 22:27:38 apb Exp $ 2 3 # Makefile for tags file 4 5 TRS6000= ../rs6000/tags 6 SRS6000= ../rs6000/rs6000/*.[ch] ../rs6000/include/*.h \ 7 ../rs6000/mca/*.[ch] ../rs6000/ioplanar/*.[ch] 8 ARS6000= ../rs6000/rs6000/*.[sS] 9 10 # Directories in which to place tags links 11 DRS6000= include 12 13 .include "../../kern/Make.tags.inc" 14 15 tags: 16 -ctags -wdtf ${TRS6000} ${SRS6000} ${COMM} 17 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ARS6000} | \ 18 ${TOOL_SED} -e \ 19 "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 20 >> ${TRS6000} 21 sort -o ${TRS6000} ${TRS6000} 22 23 links: 24 -for i in ${DRS6000}; do \ 25 cd $$i && rm -f tags; ln -s ../tags tags; done 26 27 28 SUBDIR= compile include stand 29 30 .include <bsd.subdir.mk> 31