| 1 | # @(#)Makefile 8.1 (Berkeley) %G% |
| 2 | |
| 3 | # Makefile for hp300 links, tags files |
| 4 | |
| 5 | .include "../kern/Make.tags.inc" |
| 6 | |
| 7 | all: |
| 8 | @echo "make links or tags only" |
| 9 | |
| 10 | DIRS= conf dev hp300 include scripts |
| 11 | |
| 12 | links:: |
| 13 | -for i in ${DIRS}; do \ |
| 14 | (cd $$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done |
| 15 | |
| 16 | HP300= /sys/hp/dev/*.[ch] /sys/hp/hpux/*.[ch] /sys/hp300/dev/*.[ch] \ |
| 17 | /sys/hp300/hp300/*.[ch] /sys/hp300/include/*.[ch] |
| 18 | AHP300= /sys/hp300/hp300/*.s |
| 19 | |
| 20 | tags:: |
| 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 |