diff options
author | mckusick <mckusick@FreeBSD.org> | 1999-02-28 22:14:16 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 1999-02-28 22:14:16 +0000 |
commit | f0b212c581f4f987035c5a091a20eadf8b598b43 (patch) | |
tree | f3325339e46071cf348f87bb6a422f5c25bf97e8 /sys/i386/Makefile | |
parent | 95711e23bb285d19a1a5b2801736edf10de96d4e (diff) | |
download | FreeBSD-src-f0b212c581f4f987035c5a091a20eadf8b598b43.zip FreeBSD-src-f0b212c581f4f987035c5a091a20eadf8b598b43.tar.gz |
Update to know about current kernel directory layout.
Add ability to build links as well as tags.
Diffstat (limited to 'sys/i386/Makefile')
-rw-r--r-- | sys/i386/Makefile | 53 |
1 files changed, 31 insertions, 22 deletions
diff --git a/sys/i386/Makefile b/sys/i386/Makefile index dd74cdd..28362ba 100644 --- a/sys/i386/Makefile +++ b/sys/i386/Makefile @@ -1,30 +1,39 @@ -# from: @(#)Makefile 7.3 (Berkeley) 6/9/91 -# $Id: Makefile,v 1.4 1997/02/22 09:29:47 peter Exp $ +# $Id: Makefile,v 1.5 1998/05/31 22:40:49 steve Exp $ +# @(#)Makefile 8.1 (Berkeley) 6/11/93 -# Makefile for i386 tags file +# Makefile for i386 links, tags file -all: - @echo "make tags or links only" +# SYS is normally set in Make.tags.inc +# SYS=/sys + +TAGDIR= i386 + +.include "../kern/Make.tags.inc" -TI386= ${.OBJDIR}/../i386/tags -SI386= ${.CURDIR}/../i386/i386/*.[ch] ${.CURDIR}/../i386/include/*.h \ - ${.CURDIR}/../i386/isa/*.[ch] -AI386= ${.CURDIR}/../i386/i386/*.s +all: + @echo "make links or tags only" # Directories in which to place i386 tags links -DI386= eisa isa include +DI386= apm conf eisa i386 ibcs2 include isa linux + +links:: + -for i in ${COMMDIR1}; do \ + (cd $$i && { rm -f tags; ln -s ../${TAGDIR}/tags tags; }) done + -for i in ${COMMDIR2}; do \ + (cd $$i && { rm -f tags; ln -s ../../${TAGDIR}/tags tags; }) done + -for i in ${DI386}; do \ + (cd $$i && { rm -f tags; ln -s ../tags tags; }) done + +SI386= ${SYS}/i386/apm/*.[ch] ${SYS}/i386/eisa/*.[ch] \ + ${SYS}/i386/i386/*.[ch] ${SYS}/i386/ibcs2/*.[ch] \ + ${SYS}/i386/include/*.[ch] ${SYS}/i386/isa/*.[ch] \ + ${SYS}/i386/linux/*.[ch] +AI386= ${SYS}/i386/i386/*.s -tags: - -ctags -dtf ${TI386} ${COMM} ${SI386} +tags:: + -ctags -wdt ${COMM} ${I386} egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ - >> ${TI386} - sort -o ${TI386} ${TI386} - -#XXX This doesn't work because ${.OBJDIR}/$i doesn't exist -# -#links: -# -for i in ${DI386}; do \ -# (cd ${.CURDIR}/$$i && rm -f ${.OBJDIR}/tags; \ -# ln -s ${.OBJDIR}/../tags ${.OBJDIR}/tags) \ -# done + >> tags + sort -o tags tags + chmod 444 tags |