Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sys / i386 / Makefile
CommitLineData
984263bc
MD
1# $FreeBSD: src/sys/i386/Makefile,v 1.8 2000/01/27 01:22:06 mckusick Exp $
2# @(#)Makefile 8.1 (Berkeley) 6/11/93
3
4# Makefile for i386 links, tags file
5
6# SYS is normally set in Make.tags.inc
7# SYS=/sys
8
9TAGDIR= i386
10
11.include "../kern/Make.tags.inc"
12
13all:
14 @echo "make links or tags only"
15
16# Directories in which to place i386 tags links
17DI386= apm conf eisa i386 ibcs2 include isa linux
18
19links::
20 -for i in ${COMMDIR1}; do \
21 (cd $$i && { rm -f tags; ln -s ../${TAGDIR}/tags tags; }) done
22 -for i in ${COMMDIR2}; do \
23 (cd $$i && { rm -f tags; ln -s ../../${TAGDIR}/tags tags; }) done
24 -for i in ${DI386}; do \
25 (cd $$i && { rm -f tags; ln -s ../tags tags; }) done
26
27SI386= ${SYS}/i386/apm/*.[ch] ${SYS}/i386/eisa/*.[ch] \
28 ${SYS}/i386/i386/*.[ch] ${SYS}/i386/ibcs2/*.[ch] \
29 ${SYS}/i386/include/*.[ch] ${SYS}/i386/isa/*.[ch] \
30 ${SYS}/i386/linux/*.[ch]
31AI386= ${SYS}/i386/i386/*.s
32
33tags::
34 -ctags -wdt ${COMM} ${SI386}
35 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
36 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
37 >> tags
38 sort -o tags tags
39 chmod 444 tags