summaryrefslogtreecommitdiff
path: root/sys/arch/socppc/Makefile
blob: b1b106713f869440c32dfb6d5caa68984ecb26d0 (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
#	$OpenBSD: Makefile,v 1.3 2008/05/26 18:19:46 kettenis Exp $

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

NOPROG=	noprog
NOMAN=	noman

SUBDIR= stand

TSOCPPC=	$S/arch/socppc/tags
SSOCPPC=	$S/arch/socppc/socppc/*.[ch]	\
		$S/arch/socppc/include/*.h	\
		$S/arch/socppc/dev/*.[ch]	\
		$S/arch/powerpc/include/*.h
ASOCPPC=	$S/arch/socppc/socppc/*.[sS]

# Directories in which to place socppc tags links
DSOCPPC=	conf socppc include

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

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


obj:	_SUBDIRUSE

.include <bsd.prog.mk>