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