merge in some of the netbsd changes.
[unix-history] / usr / src / sys / news3400 / Makefile
CommitLineData
c57de223 1# @(#)Makefile 8.1 (Berkeley) %G%
f71c410c 2
de6ec285 3# Makefile for news3400 links, tags file
f71c410c
KB
4
5.include "../kern/Make.tags.inc"
6
7all:
de6ec285 8 @echo "make links or tags only"
f5934919 9
de6ec285
KB
10DIRS= bm conf fb hbdev if include iodev iop news3400 newsos sio
11
12links::
13 -for i in ${DIRS}; do \
14 (cd $$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done
15
16NEWS= /sys/news3400/bm/*.[ch] /sys/news3400/fb/*.[ch] \
17 /sys/news3400/hbdev/*.[ch] /sys/news3400/if/*.[ch] \
18 /sys/news3400/include/*.[ch] /sys/news3400/iodev/*.[ch] \
19 /sys/news3400/iop/*.[ch] /sys/news3400/news3400/*.[ch] \
20 /sys/news3400/sio/*.[ch]
f5934919
KB
21ANEWS= /sys/news3400/news3400/*.s
22
23tags::
de6ec285 24 -ctags -wdt ${COMM} ${NEWS}
f5934919 25 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANEWS} | \
f71c410c 26 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
f5934919
KB
27 >> tags
28 sort -o tags tags
de6ec285
KB
29 chown bin.wsrc tags
30 chmod 444 tags