xref: /original-bsd/sys/news3400/Makefile (revision 3705696b)
1#	@(#)Makefile	8.1 (Berkeley) 06/11/93
2
3# Makefile for news3400 links, tags file
4
5.include "../kern/Make.tags.inc"
6
7all:
8	@echo "make links or tags only"
9
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]
21ANEWS=	/sys/news3400/news3400/*.s
22
23tags::
24	-ctags -wdt ${COMM} ${NEWS}
25	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANEWS} | \
26	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
27		>> tags
28	sort -o tags tags
29	chown bin.wsrc tags
30	chmod 444 tags
31