summaryrefslogtreecommitdiff
path: root/sys/arch/beagle/Makefile
blob: 31ca4118a6db99ec3f4e57297505e2cbf830af5b (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
38
# 	$OpenBSD: Makefile,v 1.1 2010/02/13 18:23:42 drahn Exp $
#	$NetBSD: Makefile,v 1.1 2001/06/12 08:32:46 chris Exp $

# Makefile for beagle tags file and boot blocks

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

#SUBDIR=	stand

NOPROG=	noprog
NOMAN=	noman

TBEAGLE=	$S/arch/beagle/tags

SBEAGLE=	$S/arch/beagle/dev/*.[ch] $S/arch/beagle/include/*.h \
		$S/arch/beagle/beagle/*.[ch] $S/arch/arm/arm/*.[ch] \
		$S/arch/arm/include/*.h $S/arch/arm/mainbus/*.[ch]
ABEAGLE=	$S/arch/beagle/beagle/*.S $S/arch/arm/arm/*.S \
		$S/arch/arm/mainbus/*.S 

# Directories in which to place tags links
DBEAGLE=	dev include beagle

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

links:
	-for i in ${DBEAGLE}; do \
	    (cd $$i && { rm -f tags; ln -s ${TBEAGLE} tags; }) done

obj:	_SUBDIRUSE

.include <bsd.prog.mk>