xref: /freebsd/sys/amd64/Makefile (revision a4f54cdf0820f6015f8acd9c41bd616b0c058cdd)
1#	from: @(#)Makefile	7.3 (Berkeley) 6/9/91
2#	$Id: Makefile,v 1.4 1997/02/22 09:29:47 peter Exp $
3
4# Makefile for i386 tags file
5
6all:
7	@echo "make tags or links only"
8
9TI386=	${.OBJDIR}/../i386/tags
10SI386=	${.CURDIR}/../i386/i386/*.[ch] ${.CURDIR}/../i386/include/*.h \
11	${.CURDIR}/../i386/isa/*.[ch]
12AI386=	${.CURDIR}/../i386/i386/*.s
13
14# Directories in which to place i386 tags links
15DI386=	eisa isa include
16
17tags:
18	-ctags -dtf ${TI386} ${COMM} ${SI386}
19	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
20	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
21		>> ${TI386}
22	sort -o ${TI386} ${TI386}
23
24#XXX This doesn't work because ${.OBJDIR}/$i doesn't exist
25#
26#links:
27#	-for i in ${DI386}; do \
28#	    (cd ${.CURDIR}/$$i && rm -f ${.OBJDIR}/tags; \
29#	    ln -s ${.OBJDIR}/../tags ${.OBJDIR}/tags) \
30#	done
31