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