Makefile revision 1.15
1#	$OpenBSD: Makefile,v 1.15 2005/05/06 11:16:47 pedro Exp $
2#	$NetBSD: Makefile,v 1.6 1996/02/01 22:31:28 mycroft Exp $
3#	@(#)Makefile	7.3 (Berkeley) 6/9/91
4
5# Makefile for i386 tags file and boot blocks
6
7S=${.CURDIR}/../..
8.include "$S/kern/Make.tags.inc"
9
10NOPROG=	noprog
11NOMAN=	noman
12
13SUBDIR=	stand
14
15TI386=	$S/arch/i386/tags
16SI386=	$S/arch/i386/eisa/*.[ch] $S/arch/i386/i386/*.[ch] \
17	$S/arch/i386/include/*.h $S/arch/i386/include/pc/*.h \
18	$S/arch/i386/isa/*.[ch] $S/arch/i386/pci/*.[ch]
19AI386=	$S/arch/i386/i386/*.[sS] $S/arch/i386/isa/*.[sS] \
20	$S/lib/libkern/arch/i386/*.[sS]
21GI386=	$S/gnu/arch/i386/*/*.[ch]
22
23# Directories in which to place i386 tags links
24DI386=	conf eisa i386 include isa pci
25
26tags:
27	-ctags -wdtf ${TI386} ${COMM} ${SI386} ${GI386}
28	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
29	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
30		>> ${TI386}
31	sort -o ${TI386} ${TI386}
32
33links:
34	-for i in ${DI386}; do \
35	    (cd $$i && rm -f tags; ln -s ${TI386} tags); done
36
37obj:	_SUBDIRUSE
38
39.include <bsd.prog.mk>
40