merge in some of the netbsd changes.
[unix-history] / usr / src / sys / hp300 / Makefile
CommitLineData
f6a703d5 1# @(#)Makefile 8.1 (Berkeley) %G%
96854b9c 2
d3994518 3# Makefile for hp300 links, tags files
96854b9c 4
0700758f
MK
5.include "../kern/Make.tags.inc"
6
96854b9c 7all:
d3994518 8 @echo "make links or tags only"
96854b9c 9
d3994518
KB
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]
a9ae6a9b 18AHP300= /sys/hp300/hp300/*.s
96854b9c 19
a9ae6a9b 20tags::
d3994518 21 -ctags -wdt ${COMM} ${HP300}
96854b9c
KB
22 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AHP300} | \
23 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
a9ae6a9b
KB
24 >> tags
25 sort -o tags tags
d3994518
KB
26 chown bin.wsrc tags
27 chmod 444 tags