xref: /netbsd-src/sys/arch/landisk/Makefile (revision 27fd3f6531803adac12382d7643a9a492b576601)
1#	$NetBSD: Makefile,v 1.2 2008/10/25 22:27:37 apb Exp $
2
3# Makefile for landisk tags file and boot blocks
4
5TLANDISK=	../landisk/tags
6SLANDISK=	../landisk/landisk/*.[ch] ../landisk/include/*.h
7ALANDISK=	../landisk/landisk/*.[sS]
8
9# Directories in which to place tags links
10DLANDISK=	landisk include
11
12.include "../../kern/Make.tags.inc"
13
14tags:
15	-ctags -wdtf ${TLANDISK} ${SLANDISK} ${COMM}
16	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ALANDISK} | \
17	    ${TOOL_SED} -e \
18		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
19		>> ${TLANDISK}
20	sort -o ${TLANDISK} ${TLANDISK}
21
22links:
23	-for i in ${DLANDISK}; do \
24	    (cd $$i && rm -f tags; ln -s ../tags tags); done
25
26SUBDIR=	compile include	stand
27
28.include <bsd.subdir.mk>
29