summaryrefslogtreecommitdiff
path: root/sys/arch/aviion/Makefile
blob: 5d56739e154383993368a0f77b2fab58ce551532 (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
#	$OpenBSD: Makefile,v 1.2 2006/05/09 21:15:18 deraadt Exp $

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

NOPROG=
NOMAN=
NOOBJ=		

SUBDIR=		stand

TAVIION=	$S/arch/aviion/tags
SAVIION=	$S/arch/aviion/aviion/*.[ch] \
		$S/arch/aviion/dev/*.[ch] \
		$S/arch/aviion/include/*.h
AAVIION=	$S/arch/aviion/aviion/*.[sS]

# Directories in which to place aviion tags links
DAVIION=	conf dev aviion include

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

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

obj:	_SUBDIRUSE

.include <bsd.prog.mk>