blob: 599f07863be485f5f688ebc99cdaeadb11b71b70 (
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
|
# $OpenBSD: Makefile,v 1.4 2005/05/06 03:06:04 marco Exp $
# $NetBSD: Makefile,v 1.1 2001/06/12 08:32:46 chris Exp $
# Makefile for cats tags file and boot blocks
S=${.CURDIR}/../..
.include "$S/kern/Make.tags.inc"
NOPROG= noprog
NOMAN= noman
TCATS= $S/arch/cats/tags
SCATS= $S/arch/cats/cats/*.[ch] $S/arch/cats/include/*.h \
$S/arch/cats/isa/*.[ch] $S/arch/cats/pci/*.[ch] \
$S/arch/arm/arm/*.[ch] $S/arch/arm/footbridge/*.[ch] \
$S/arch/arm/footbridge/isa/*.[ch]
ACATS= $S/arch/arm/arm/*.S \
$S/arch/arm/footbridge/isa/*.S
# Directories in which to place tags links
DCATS=cats conf include isa pci
tags:
-ctags -wdtf ${TCATS} ${SCATS} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ACATS} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TCATS}
sort -o ${TCATS} ${TCATS}
links:
-for i in ${DCATS}; do \
(cd $$i && { rm -f tags; ln -s ${TCATS} tags; }) done
obj: _SUBDIRUSE
.include <bsd.prog.mk>
|