1 # $NetBSD: Makefile,v 1.6.56.1 2008/02/18 21:04:45 mjf Exp $ 2 3 # Makefile for macppc tags file 4 5 TIMACPPC= ${SYSDIR}/arch/macppc/tags 6 SIMACPPC= ${SYSDIR}/arch/macppc/macppc/*.[ch] \ 7 ${SYSDIR}/arch/macppc/include/*.h \ 8 ${SYSDIR}/arch/macppc/dev/*.[ch] \ 9 ${SYSDIR}/arch/macppc/pci/*.[ch] \ 10 ${SYSDIR}/contrib/dev/ath/*.[ch] \ 11 ${SYSDIR}/contrib/dev/ath/netbsd/*.[ch] \ 12 ${SYSDIR}/contrib/dev/ath/public/*.[ch] 13 SIMACPPC+= ${SYSDIR}/arch/powerpc/powerpc/*.[ch] \ 14 ${SYSDIR}/arch/powerpc/include/*.h \ 15 ${SYSDIR}/arch/powerpc/pci/*.[ch] 16 AIMACPPC= ${SYSDIR}/arch/macppc/macppc/*.[sS] 17 18 # Directories in which to place tags links 19 DIMACPPC= macppc dev include pci 20 21 .include "../../kern/Make.tags.inc" 22 23 tags: 24 -rm -f ${TIMACPPC} 25 -echo ${SIMACPPC} | xargs ctags -wadtf ${TIMACPPC} 26 -${FINDCOMM} | xargs ctags -wadtf ${TIMACPPC} 27 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AIMACPPC} | \ 28 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 29 >> ${TIMACPPC} 30 sort -o ${TIMACPPC} ${TIMACPPC} 31 32 links: 33 -for i in ${DIMACPPC}; do \ 34 (cd $$i && rm -f tags; ln -s ../tags tags); done 35 36 SUBDIR= compile include stand ../powerpc/include 37 38 .include <bsd.subdir.mk> 39