xref: /original-bsd/sys/i386/Makefile (revision fcb8f72b)
1#	@(#)Makefile	8.1 (Berkeley) 06/11/93
2
3# Makefile for i386 links, tags file
4
5.include "../kern/Make.tags.inc"
6
7all:
8	@echo "make links or tags only"
9
10DIRS=	conf eisa floppy i386 include isa mca scripts
11
12links::
13	-for i in ${DIRS}; do \
14	    (cd $$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done
15
16I386=	/sys/i386/eisa/*.[ch] /sys/i386/i386/*.[ch] \
17	/sys/i386/include/*.[ch] /sys/i386/isa/*.[ch]
18AI386=	/sys/i386/i386/*.s
19
20tags::
21	-ctags -wdt ${COMM} ${I386}
22	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
23	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
24		>> tags
25	sort -o tags tags
26	chown bin.wsrc tags
27	chmod 444 tags
28