Home | History | Annotate | Line # | Download | only in macppc
Makefile revision 1.4
      1 #	$NetBSD: Makefile,v 1.4 2004/03/13 05:55:40 dyoung 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/sys/dev/ic/*.[ch]
     11 AIMACPPC=	${SYSDIR}/arch/macppc/macppc/*.[sS]
     12 
     13 # Directories in which to place tags links
     14 DIMACPPC=	macppc dev include pci
     15 
     16 .include "../../kern/Make.tags.inc"
     17 
     18 tags:
     19 	rm -f ${TIMACPPC}
     20 	-echo ${SIMACPPC} ${COMM} | xargs ctags -wadtf ${TIMACPPC}
     21 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AIMACPPC} | \
     22 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     23 		>> ${TIMACPPC}
     24 	sort -o ${TIMACPPC} ${TIMACPPC}
     25 
     26 links:
     27 	-for i in ${DIMACPPC}; do \
     28 	    (cd $$i && rm -f tags; ln -s ../tags tags); done
     29 
     30 SUBDIR=	compile include stand
     31 
     32 .include <bsd.subdir.mk>
     33