Makefile revision 1.7
1#	$NetBSD: Makefile,v 1.7 1997/10/11 08:42:09 mycroft Exp $
2
3NOOBJ=
4
5# Makefile for pmax tags file and boot blocks
6
7SUBDIR=	stand
8
9# Find where mips source fils are for inclusion in tags
10.include <../mips/Makefile.inc>
11
12TPMAX=	../pmax/tags
13SPMAX=	../pmax/pmax/*.[ch] ../pmax/include/*.h \
14	../pmax/dev/*.[ch] ../pmax/tc/*.[ch]
15APMAX=	../pmax/pmax/*.S
16
17# Directories in which to place pmax (mips) tags links
18DPMAX=	dev tc include
19
20.include "../../kern/Make.tags.inc"
21
22tags:
23	-ctags -wdtf ${TPMAX} ${SPMAX} ${SMIPS} ${COMM}
24	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${APMAX} ${AMIPS} | \
25	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
26	    >> ${TPMAX}
27	sort -o ${TPMAX} ${TPMAX}
28
29links:
30	-for i in ${DPMAX}; do \
31	    cd $$i && rm -f tags; ln -s ../tags tags; done
32
33.include <bsd.subdir.mk>
34