1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00
freebsd/sys/i386/Makefile
Kirk McKusick 0ee81fe5f5 Update to know about current kernel directory layout.
Add ability to build links as well as tags.
1999-02-28 22:14:16 +00:00

40 lines
1.0 KiB
Makefile

# $Id: Makefile,v 1.5 1998/05/31 22:40:49 steve Exp $
# @(#)Makefile 8.1 (Berkeley) 6/11/93
# Makefile for i386 links, tags file
# SYS is normally set in Make.tags.inc
# SYS=/sys
TAGDIR= i386
.include "../kern/Make.tags.inc"
all:
@echo "make links or tags only"
# Directories in which to place i386 tags links
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 -wdt ${COMM} ${I386}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> tags
sort -o tags tags
chmod 444 tags