xref: /netbsd/sys/arch/prep/Makefile (revision bf9ec67e)
1#	$NetBSD: Makefile,v 1.1 2000/02/29 15:21:53 nonaka Exp $
2
3# Makefile for tags file
4
5TPREP=	../prep/tags
6SPREP=	../prep/prep/*.[ch] ../prep/include/*.h ../prep/isa/*.[ch] \
7	../prep/pci/*.[ch]
8APREP=	../prep/prep/*.[sS]
9
10# Directories in which to place tags links
11DPREP=       include
12
13.include "../../kern/Make.tags.inc"
14
15tags:
16	-ctags -wdtf ${TPREP} ${SPREP} ${COMM}
17	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${APREP} | \
18	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
19	    >> ${TPREP}
20	sort -o ${TPREP} ${TPREP}
21
22links:
23	-for i in ${DPREP}; do \
24	    cd $$i && rm -f tags; ln -s ../tags tags; done
25
26SUBDIR=	include stand
27
28.include <bsd.subdir.mk>
29