xref: /original-bsd/sys/hp300/Makefile (revision 3705696b)
1#	@(#)Makefile	8.1 (Berkeley) 06/11/93
2
3# Makefile for hp300 links, tags files
4
5.include "../kern/Make.tags.inc"
6
7all:
8	@echo "make links or tags only"
9
10DIRS=	conf dev hp300 include scripts
11
12links::
13	-for i in ${DIRS}; do \
14	    (cd $$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done
15
16HP300=	/sys/hp/dev/*.[ch] /sys/hp/hpux/*.[ch] /sys/hp300/dev/*.[ch] \
17	/sys/hp300/hp300/*.[ch] /sys/hp300/include/*.[ch]
18AHP300=	/sys/hp300/hp300/*.s
19
20tags::
21	-ctags -wdt ${COMM} ${HP300}
22	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AHP300} | \
23	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
24		>> tags
25	sort -o tags tags
26	chown bin.wsrc tags
27	chmod 444 tags
28