Home | History | Annotate | Line # | Download | only in macppc
      1 #	$NetBSD: Makefile,v 1.9 2009/08/07 18:48:38 snj 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}/external/isc/atheros_hal/dist/*.[ch] \
     11 		${SYSDIR}/external/isc/atheros_hal/dist/*/*.[ch] \
     12 		${SYSDIR}/external/isc/atheros_hal/ic/*.[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 	    ${TOOL_SED} -e \
     29 	"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
     30 		>> ${TIMACPPC}
     31 	sort -o ${TIMACPPC} ${TIMACPPC}
     32 
     33 links:
     34 	-for i in ${DIMACPPC}; do \
     35 	    (cd $$i && rm -f tags; ln -s ../tags tags); done
     36 
     37 SUBDIR=	compile include stand ../powerpc/include
     38 
     39 .include <bsd.subdir.mk>
     40