1 # $NetBSD: Makefile,v 1.8 1997/10/11 08:44:48 mycroft Exp $ 2 3 # Makefile for pmax tags file and boot blocks 4 5 SUBDIR= stand 6 7 # Find where mips source fils are for inclusion in tags 8 .include <../mips/Makefile.inc> 9 10 TPMAX= ../pmax/tags 11 SPMAX= ../pmax/pmax/*.[ch] ../pmax/include/*.h \ 12 ../pmax/dev/*.[ch] ../pmax/tc/*.[ch] 13 APMAX= ../pmax/pmax/*.S 14 15 # Directories in which to place pmax (mips) tags links 16 DPMAX= dev tc include 17 18 .include "../../kern/Make.tags.inc" 19 20 tags: 21 -ctags -wdtf ${TPMAX} ${SPMAX} ${SMIPS} ${COMM} 22 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${APMAX} ${AMIPS} | \ 23 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 24 >> ${TPMAX} 25 sort -o ${TPMAX} ${TPMAX} 26 27 links: 28 -for i in ${DPMAX}; do \ 29 cd $$i && rm -f tags; ln -s ../tags tags; done 30 31 .include <bsd.subdir.mk> 32