Makefile revision 1.5
1#	$NetBSD: Makefile,v 1.5 1996/09/29 23:55:05 jonathan Exp $
2#	@(#)Makefile	7.3 (Berkeley) 6/9/91
3
4# Makefile for pmax tags file and boot blocks
5
6NOPROG=	noprog
7NOMAN=	noman
8
9# Find where mips source fils are for inclusion in tags
10.include <../mips/Makefile.inc>
11
12SUBDIR=	stand
13
14TPMAX=	../pmax/tags
15SPMAX=	../pmax/pmax/*.[ch] ../pmax/include/*.h \
16	../pmax/dev/*.[ch] ../pmax/tc/*.[ch]
17APMAX=	../pmax/pmax/*.S
18
19# Directories in which to place pmax (mips) tags links
20DPMAX=	dev tc include
21
22tags:	${COMM} ${SPMAX} ${SMIPS} ${APMAX} ${AMIPS}
23	-ctags -dtf ${TPMAX} ${COMM} ${SPMAX} ${SMIPS}
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
33obj: _SUBDIRUSE
34
35.include <bsd.prog.mk>
36