xref: /netbsd-src/sys/arch/macppc/Makefile (revision eb961d0e02b7a46a9acfa877b02df48df6637278)
1#	$NetBSD: Makefile,v 1.6 2005/12/11 12:18:03 christos 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}/../contrib/sys/dev/ic/*.[ch]
11AIMACPPC=	${SYSDIR}/arch/macppc/macppc/*.[sS]
12
13# Directories in which to place tags links
14DIMACPPC=	macppc dev include pci
15
16.include "../../kern/Make.tags.inc"
17
18tags:
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
26links:
27	-for i in ${DIMACPPC}; do \
28	    (cd $$i && rm -f tags; ln -s ../tags tags); done
29
30SUBDIR=	compile include stand
31
32.include <bsd.subdir.mk>
33