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