summaryrefslogtreecommitdiff
path: root/sys/arch/pmax/Makefile
blob: ede7d07de492f7c675fb35e6d46e89914599e6a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#	$NetBSD: Makefile,v 1.5 1996/09/29 23:55:05 jonathan Exp $
#	@(#)Makefile	7.3 (Berkeley) 6/9/91

# Makefile for pmax tags file and boot blocks

NOPROG=	noprog
NOMAN=	noman

SUBDIR=

TPMAX=	../pmax/tags
SPMAX=	../pmax/pmax/*.[ch] ../pmax/include/*.h \
	../pmax/dev/*.[ch] ../pmax/tc/*.[ch]
APMAX=	../pmax/pmax/*.S

# Directories in which to place pmax tags links
DPMAX=	dev tc include

tags:	${COMM} ${SPMAX} ${SMIPS} ${APMAX} ${AMIPS}
	-ctags -dtf ${TPMAX} ${COMM} ${SPMAX} ${SMIPS}
	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${APMAX} ${AMIPS} | \
	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
		>> ${TPMAX}
	sort -o ${TPMAX} ${TPMAX}

links:
	-for i in ${DPMAX}; do \
	    cd $$i && rm -f tags; ln -s ../tags tags; done

obj: _SUBDIRUSE

.include <bsd.prog.mk>