1 1.18 lukem # $NetBSD: Makefile,v 1.18 2001/02/22 04:40:43 lukem Exp $ 2 1.1 cgd 3 1.3 cgd # Makefile for i386 tags file and boot blocks 4 1.1 cgd 5 1.16 perry SYSDIR?= /sys 6 1.16 perry 7 1.16 perry TI386= ${SYSDIR}/arch/i386/tags 8 1.16 perry SI386= ${SYSDIR}/arch/i386/i386/*.[ch] ${SYSDIR}/arch/i386/include/*.h \ 9 1.16 perry ${SYSDIR}/arch/i386/eisa/*.[ch] ${SYSDIR}/arch/i386/isa/*.[ch] \ 10 1.16 perry ${SYSDIR}/arch/i386/pci/*.[ch] 11 1.16 perry AI386= ${SYSDIR}/arch/i386/i386/*.s ${SYSDIR}/arch/i386/isa/*.s 12 1.1 cgd 13 1.13 mycroft # Directories in which to place tags links 14 1.16 perry DI386= i386 eisa isa include pci 15 1.11 mycroft 16 1.11 mycroft .include "../../kern/Make.tags.inc" 17 1.1 cgd 18 1.1 cgd tags: 19 1.18 lukem rm -f ${TI386} 20 1.18 lukem -echo ${SI386} ${COMM} | xargs ctags -wadtf ${TI386} 21 1.1 cgd egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \ 22 1.1 cgd sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 23 1.1 cgd >> ${TI386} 24 1.1 cgd sort -o ${TI386} ${TI386} 25 1.1 cgd 26 1.1 cgd links: 27 1.1 cgd -for i in ${DI386}; do \ 28 1.16 perry (cd $$i && rm -f tags; ln -s ../tags tags); done 29 1.13 mycroft 30 1.13 mycroft 31 1.17 mycroft SUBDIR= include stand 32 1.3 cgd 33 1.11 mycroft .include <bsd.subdir.mk> 34