summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/Makefile
blob: d1e3cd4c10bf1daf511890213f7d0b0fe9fed21e (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.7 2005/05/24 20:12:02 uwe Exp $
#	$NetBSD: Makefile,v 1.3 1995/02/27 16:36:07 cgd Exp $

# Makefile for alpha tags file and boot blocks

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

NOPROG=	noprog
NOMAN=	noman

SUBDIR=	stand

TALPHA=	$S/arch/alpha/tags
SALPHA=	$S/arch/alpha/alpha/*.[ch] $S/arch/alpha/include/*.h \
	$S/arch/alpha/tc/*.[ch] $S/arch/alpha/dev/*.[ch] \
	$S/arch/alpha/eisa/*.[ch] $S/arch/alpha/isa/*.[ch] \
	$S/arch/alpha/pci/*.[ch]
AALPHA=	$S/arch/alpha/alpha/*.[sS] $S/arch/alpha/pci/*.[Ss] \
	$S/lib/libkern/arch/alpha/*.[sS]

# Directories in which to place alpha tags links
DALPHA=	alpha eisa isa dev pci tc include

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

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

obj: _SUBDIRUSE

.include <bsd.prog.mk>