1 1.5.8.2 thorpej # $NetBSD: Makefile,v 1.5.8.2 2003/01/07 21:12:23 thorpej Exp $ 2 1.5.8.2 thorpej 3 1.5.8.2 thorpej # Makefile for next68k tags file and boot blocks 4 1.5.8.2 thorpej 5 1.5.8.2 thorpej # Find where m68k source files are for inclusion in tags 6 1.5.8.2 thorpej .include <../m68k/Makefile.inc> 7 1.5.8.2 thorpej 8 1.5.8.2 thorpej ENEXT68K= ../next68k/TAGS 9 1.5.8.2 thorpej TNEXT68K= ../next68k/tags 10 1.5.8.2 thorpej SNEXT68K= ../next68k/next68k/*.[ch] ../next68k/include/*.h \ 11 1.5.8.2 thorpej ../next68k/dev/*.[ch] 12 1.5.8.2 thorpej ANEXT68K= ../next68k/next68k/*.s 13 1.5.8.2 thorpej 14 1.5.8.2 thorpej # Directories in which to place tags links 15 1.5.8.2 thorpej DNEXT68K= dev next68k include 16 1.5.8.2 thorpej 17 1.5.8.2 thorpej .include "../../kern/Make.tags.inc" 18 1.5.8.2 thorpej 19 1.5.8.2 thorpej tags: 20 1.5.8.2 thorpej -ctags -wdtf ${TNEXT68K} ${SNEXT68K} ${SM68K} ${COMM} 21 1.5.8.2 thorpej egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANEXT68K} ${AM68K} | \ 22 1.5.8.2 thorpej sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 23 1.5.8.2 thorpej >> ${TNEXT68K} 24 1.5.8.2 thorpej sort -o ${TNEXT68K} ${TNEXT68K} 25 1.5.8.2 thorpej 26 1.5.8.2 thorpej .ifmake TAGS 27 1.5.8.2 thorpej COMM!= find ${SYSDIR} -name "arch" -prune -o -name "*.[ch]" -print 28 1.5.8.2 thorpej .endif 29 1.5.8.2 thorpej 30 1.5.8.2 thorpej TAGS: 31 1.5.8.2 thorpej emacs-etags -o ${ENEXT68K} ${SNEXT68K} ${SM68K} ${COMM} 32 1.5.8.2 thorpej emacs-etags -a -l none \ 33 1.5.8.2 thorpej --regex='/^\(ALT\)?ENTRY\(_NOPROFILE\)?(\([a-zA-Z0-9_]*\))\|^GLOBAL(\([a-zA-Z0-9_]*\))/\3\4/' \ 34 1.5.8.2 thorpej -o ${ENEXT68K} ${ANEXT68K} ${AM68K} 35 1.5.8.2 thorpej 36 1.5.8.2 thorpej links: 37 1.5.8.2 thorpej -for i in ${DNEXT68K}; do \ 38 1.5.8.2 thorpej cd $$i && rm -f tags; ln -s ../tags tags; done 39 1.5.8.2 thorpej 40 1.5.8.2 thorpej 41 1.5.8.2 thorpej SUBDIR= compile include stand 42 1.5.8.2 thorpej 43 1.5.8.2 thorpej .include <bsd.subdir.mk> 44