Makefile revision 50477
1234027Sstas# $FreeBSD: head/sys/i386/Makefile 50477 1999-08-28 01:08:13Z peter $
2226031Sstas#	@(#)Makefile	8.1 (Berkeley) 6/11/93
3226031Sstas
4226031Sstas# Makefile for i386 links, tags file
5226031Sstas
6226031Sstas# SYS is normally set in Make.tags.inc
7226031Sstas# SYS=/sys
8226031Sstas
9226031SstasTAGDIR=	i386
10226031Sstas
11226031Sstas.include "../kern/Make.tags.inc"
12226031Sstas
13226031Sstasall:
14226031Sstas	@echo "make links or tags only"
15226031Sstas
16226031Sstas# Directories in which to place i386 tags links
17226031SstasDI386=	apm conf eisa i386 ibcs2 include isa linux
18226031Sstas
19226031Sstaslinks::
20226031Sstas	-for i in ${COMMDIR1}; do \
21226031Sstas	    (cd $$i && { rm -f tags; ln -s ../${TAGDIR}/tags tags; }) done
22226031Sstas	-for i in ${COMMDIR2}; do \
23226031Sstas	    (cd $$i && { rm -f tags; ln -s ../../${TAGDIR}/tags tags; }) done
24226031Sstas	-for i in ${DI386}; do \
25226031Sstas	    (cd $$i && { rm -f tags; ln -s ../tags tags; }) done
26226031Sstas
27226031SstasSI386=	${SYS}/i386/apm/*.[ch] ${SYS}/i386/eisa/*.[ch] \
28226031Sstas	${SYS}/i386/i386/*.[ch] ${SYS}/i386/ibcs2/*.[ch] \
29226031Sstas	${SYS}/i386/include/*.[ch] ${SYS}/i386/isa/*.[ch] \
30226031Sstas	${SYS}/i386/linux/*.[ch]
31226031SstasAI386=	${SYS}/i386/i386/*.s
32226031Sstas
33226031Sstastags::
34226031Sstas	-ctags -wdt ${COMM} ${I386}
35226031Sstas	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
36226031Sstas	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
37226031Sstas		>> tags
38226031Sstas	sort -o tags tags
39226031Sstas	chmod 444 tags
40226031Sstas