freebsd-dev/sys/i386/Makefile

41 lines
1.1 KiB
Makefile
Raw Normal View History

1999-08-28 01:08:13 +00:00
# $FreeBSD$
# @(#)Makefile 8.1 (Berkeley) 6/11/93
1993-06-12 14:58:17 +00:00
# Makefile for i386 links, tags file
1993-06-12 14:58:17 +00:00
# SYS is normally set in Make.tags.inc
2007-05-13 18:21:54 +00:00
SYS=/sys
TAGDIR= i386
.include "../kern/Make.tags.inc"
1993-06-12 14:58:17 +00:00
all:
@echo "make links or tags only"
1993-06-12 14:58:17 +00:00
# Directories in which to place i386 tags links
DI386= apm 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
2007-05-13 18:21:54 +00:00
SI386= ${SYS}/i386/acpica/*.[ch] ${SYS}/i386/bios/*.[ch] \
${SYS}/i386/cpufreq/*.[ch] ${SYS}/i386/pci/*.[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
1993-06-12 14:58:17 +00:00
tags::
-ctags -wdt ${COMM} ${SI386}
1993-06-12 14:58:17 +00:00
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> tags
sort -o tags tags
chmod 444 tags