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