1999-08-27 21:08:13 -04:00
|
|
|
# $FreeBSD$
|
1999-02-28 17:14:16 -05:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/11/93
|
1993-06-12 10:58:17 -04:00
|
|
|
|
1999-02-28 17:14:16 -05:00
|
|
|
# Makefile for i386 links, tags file
|
1993-06-12 10:58:17 -04:00
|
|
|
|
1999-02-28 17:14:16 -05:00
|
|
|
# SYS is normally set in Make.tags.inc
|
|
|
|
|
# SYS=/sys
|
2002-06-21 02:18:05 -04:00
|
|
|
SYS=/nsys
|
1999-02-28 17:14:16 -05:00
|
|
|
|
|
|
|
|
TAGDIR= i386
|
|
|
|
|
|
|
|
|
|
.include "../kern/Make.tags.inc"
|
1993-06-12 10:58:17 -04:00
|
|
|
|
1999-02-28 17:14:16 -05:00
|
|
|
all:
|
|
|
|
|
@echo "make links or tags only"
|
1993-06-12 10:58:17 -04:00
|
|
|
|
|
|
|
|
# Directories in which to place i386 tags links
|
2001-12-04 20:23:21 -05:00
|
|
|
DI386= apm i386 ibcs2 include isa linux
|
1999-02-28 17:14:16 -05:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
2000-07-03 20:18:43 -04:00
|
|
|
SI386= ${SYS}/i386/apm/*.[ch] \
|
1999-02-28 17:14:16 -05:00
|
|
|
${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
|
1993-06-12 10:58:17 -04:00
|
|
|
|
1999-02-28 17:14:16 -05:00
|
|
|
tags::
|
2000-01-26 20:22:06 -05:00
|
|
|
-ctags -wdt ${COMM} ${SI386}
|
1993-06-12 10:58:17 -04:00
|
|
|
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
|
|
|
|
|
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
|
1999-02-28 17:14:16 -05:00
|
|
|
>> tags
|
|
|
|
|
sort -o tags tags
|
|
|
|
|
chmod 444 tags
|