Makefile revision 1.2
11.2Sapb#	$NetBSD: Makefile,v 1.2 2008/10/25 22:27:37 apb Exp $
21.1Suwe
31.1Suwe# Makefile for landisk tags file and boot blocks
41.1Suwe
51.1SuweTLANDISK=	../landisk/tags
61.1SuweSLANDISK=	../landisk/landisk/*.[ch] ../landisk/include/*.h
71.1SuweALANDISK=	../landisk/landisk/*.[sS]
81.1Suwe
91.1Suwe# Directories in which to place tags links
101.1SuweDLANDISK=	landisk include
111.1Suwe
121.1Suwe.include "../../kern/Make.tags.inc"
131.1Suwe
141.1Suwetags:
151.1Suwe	-ctags -wdtf ${TLANDISK} ${SLANDISK} ${COMM}
161.1Suwe	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ALANDISK} | \
171.2Sapb	    ${TOOL_SED} -e \
181.2Sapb		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
191.1Suwe		>> ${TLANDISK}
201.1Suwe	sort -o ${TLANDISK} ${TLANDISK}
211.1Suwe
221.1Suwelinks:
231.1Suwe	-for i in ${DLANDISK}; do \
241.1Suwe	    (cd $$i && rm -f tags; ln -s ../tags tags); done
251.1Suwe
261.1SuweSUBDIR=	compile include	stand
271.1Suwe
281.1Suwe.include <bsd.subdir.mk>
29