]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/i386/Makefile
zfs: merge openzfs/zfs@f795e90a1
[FreeBSD/FreeBSD.git] / sys / i386 / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/11/93
2
3 # Makefile for i386 links, tags file
4
5 # SYS is normally set in Make.tags.inc
6 SYS=/sys
7
8 TAGDIR= i386
9
10 .include "../kern/Make.tags.inc"
11
12 all:
13         @echo "make links or tags only"
14
15 # Directories in which to place i386 tags links
16 DI386=  apm i386 include isa linux
17
18 links::
19         -for i in ${COMMDIR1}; do \
20             (cd $$i && { rm -f tags; ln -s ../${TAGDIR}/tags tags; }) done
21         -for i in ${COMMDIR2}; do \
22             (cd $$i && { rm -f tags; ln -s ../../${TAGDIR}/tags tags; }) done
23         -for i in ${DI386}; do \
24             (cd $$i && { rm -f tags; ln -s ../tags tags; }) done
25
26 SI386=  ${SYS}/i386/acpica/*.[ch] ${SYS}/i386/bios/*.[ch] \
27         ${SYS}/i386/i386/*.[ch] ${SYS}/i386/include/*.[ch] \
28         ${SYS}/i386/isa/*.[ch] ${SYS}/i386/linux/*.[ch] \
29         ${SYS}/i386/pci/*.[ch]
30 AI386=  ${SYS}/i386/i386/*.s
31
32 tags::
33         -ctags -wdt ${COMM} ${SI386}
34         egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
35             sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
36                 >> tags
37         sort -o tags tags
38         chmod 444 tags