1 1.3 apb # $NetBSD: Makefile,v 1.3 2008/10/25 22:27:37 apb Exp $ 2 1.1 itojun 3 1.1 itojun # Makefile for hpcsh tags file and boot blocks 4 1.1 itojun 5 1.1 itojun #.include "../sh3/Makefile.inc" 6 1.1 itojun 7 1.1 itojun TEVBSH3= ../hpcsh/tags 8 1.1 itojun SEVBSH3= ../hpcsh/hpcsh/*.[ch] ../hpcsh/include/*.h 9 1.1 itojun AEVBSH3= ../hpcsh/hpcsh/*.[sS] 10 1.1 itojun 11 1.1 itojun # Directories in which to place tags links 12 1.1 itojun DEVBSH3= hpcsh include 13 1.1 itojun 14 1.1 itojun .include "../../kern/Make.tags.inc" 15 1.1 itojun 16 1.1 itojun tags: 17 1.1 itojun -ctags -wdtf ${TEVBSH3} ${SEVBSH3} ${COMM} 18 1.1 itojun egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AEVBSH3} | \ 19 1.3 apb ${TOOL_SED} -e \ 20 1.3 apb "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 21 1.1 itojun >> ${TEVBSH3} 22 1.1 itojun sort -o ${TEVBSH3} ${TEVBSH3} 23 1.1 itojun 24 1.1 itojun links: 25 1.1 itojun -for i in ${DEVBSH3}; do \ 26 1.1 itojun (cd $$i && rm -f tags; ln -s ../tags tags); done 27 1.1 itojun 28 1.1 itojun 29 1.2 lukem SUBDIR= compile include # stand 30 1.1 itojun 31 1.1 itojun .include <bsd.subdir.mk> 32