summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/Makefile
blob: 4ef3035518d6ac486f358128966a610ae947ffc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#	$OpenBSD: Makefile,v 1.4 2007/06/01 15:48:35 grange Exp $

S=${.CURDIR}/../..
.include "$S/kern/Make.tags.inc"

NOPROG=	noprog
NOMAN=	noman

.if ${MACHINE} == "macppc"
SUBDIR= stand
.endif

TMACPPC=	$S/arch/macppc/tags
SMACPPC=	$S/arch/macppc/macppc/*.[ch] \
		$S/arch/macppc/include/*.h   \
		$S/arch/macppc/dev/*.[ch]    \
		$S/arch/macppc/pci/*.[ch]
AMACPPC=	$S/arch/macppc/macppc/*.[sS]

# Directories in which to place macppc tags links
DMACPPC=	conf macppc include pci

tags:
	-ctags -wdtf ${TMACPPC} ${COMM} ${SMACPPC}
	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMACPPC} | \
	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
		>> ${TMACPPC}
	sort -o ${TMACPPC} ${TMACPPC}

links:
	-for i in ${DMACPPC}; do \
	    cd $$i && rm -f tags; ln -s ${TMACPPC} tags; done


obj:	_SUBDIRUSE

.include <bsd.prog.mk>