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