1# $NetBSD: Makefile,v 1.9 2009/08/07 18:48:38 snj Exp $ 2 3# Makefile for macppc tags file 4 5TIMACPPC= ${SYSDIR}/arch/macppc/tags 6SIMACPPC= ${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}/external/isc/atheros_hal/dist/*.[ch] \ 11 ${SYSDIR}/external/isc/atheros_hal/dist/*/*.[ch] \ 12 ${SYSDIR}/external/isc/atheros_hal/ic/*.[ch] 13SIMACPPC+= ${SYSDIR}/arch/powerpc/powerpc/*.[ch] \ 14 ${SYSDIR}/arch/powerpc/include/*.h \ 15 ${SYSDIR}/arch/powerpc/pci/*.[ch] 16AIMACPPC= ${SYSDIR}/arch/macppc/macppc/*.[sS] 17 18# Directories in which to place tags links 19DIMACPPC= macppc dev include pci 20 21.include "../../kern/Make.tags.inc" 22 23tags: 24 -rm -f ${TIMACPPC} 25 -echo ${SIMACPPC} | xargs ctags -wadtf ${TIMACPPC} 26 -${FINDCOMM} | xargs ctags -wadtf ${TIMACPPC} 27 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AIMACPPC} | \ 28 ${TOOL_SED} -e \ 29 "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 30 >> ${TIMACPPC} 31 sort -o ${TIMACPPC} ${TIMACPPC} 32 33links: 34 -for i in ${DIMACPPC}; do \ 35 (cd $$i && rm -f tags; ln -s ../tags tags); done 36 37SUBDIR= compile include stand ../powerpc/include 38 39.include <bsd.subdir.mk> 40