1# $NetBSD: Makefile,v 1.3 2000/06/28 09:47:55 soren Exp $ 2 3# Makefile for cobalt tags file 4 5# Find where mips source files are for inclusion in tags 6.include <../mips/Makefile.inc> 7 8TCOBALT= ../cobalt/tags 9SCOBALT= ../cobalt/cobalt/*.[ch] ../cobalt/include/*.h \ 10 ../cobalt/dev/*.[ch] ../cobalt/pci/*.[ch] 11ACOBALT= ../cobalt/cobalt/*.S 12 13# Directories in which to place tags links 14DCOBALT= pci include 15 16.include "../../kern/Make.tags.inc" 17 18tags: 19 -ctags -wdtf ${TCOBALT} ${SCOBALT} ${SMIPS} ${COMM} 20 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ACOBALT} ${AMIPS} | \ 21 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 22 >> ${TCOBALT} 23 sort -o ${TCOBALT} ${TCOBALT} 24 25links: 26 -for i in ${DCOBALT}; do \ 27 cd $$i && rm -f tags; ln -s ../tags tags; done 28 29SUBDIR= include stand 30 31.include <bsd.subdir.mk> 32