Makefile revision 1.2
11.2Slukem#	$NetBSD: Makefile,v 1.2 2003/01/06 17:40:21 lukem Exp $
21.1Sthorpej
31.1Sthorpej# Makefile for algor tags file and boot blocks
41.1Sthorpej
51.1Sthorpej# Find where mips source files are for inclusion in tags
61.1Sthorpej.include <../mips/Makefile.inc>
71.1Sthorpej
81.1SthorpejTALGOR= ../algor/tags
91.1SthorpejSALGOR= ../algor/algor/*.[ch] ../algor/include/*.h ../algor/isa/*.[ch] \
101.1Sthorpej	../algor/pci/*.[ch]
111.1SthorpejAALGOR= ../algor/algor/*.S
121.1Sthorpej
131.1Sthorpej# Directories in which to place tags links
141.1SthorpejDALGOR= algor include isa pci
151.1Sthorpej
161.1Sthorpej.include "../../kern/Make.tags.inc"
171.1Sthorpej
181.1Sthorpejtags:
191.1Sthorpej	-ctags -wdtf ${TALGOR} ${SALGOR} ${SMIPS} ${COMM}
201.1Sthorpej	egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AALGOR} ${AMIPS} | \
211.1Sthorpej	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
221.1Sthorpej	    >> ${TARC}
231.1Sthorpej	sort -o ${TALGOR} ${TALGOR}
241.1Sthorpej
251.1Sthorpejlinks:
261.1Sthorpej	-for i in ${DALGOR}; do \
271.1Sthorpej	    cd $$i && rm -f tags; ln -s ../tags tags; done
281.1Sthorpej
291.1Sthorpej
301.2SlukemSUBDIR=	compile include
311.1Sthorpej
321.1Sthorpej.include <bsd.subdir.mk>
33