1# @(#)Makefile 7.2 (Berkeley) 05/05/92 2 3# Makefile for pmax tags file 4 5.include "../kern/Make.tags.inc" 6 7all: 8 @echo "make tags or links only" 9 10TPMAX= ../pmax/tags 11SPMAX= ../pmax/pmax/*.[ch] ../pmax/include/*.h ../pmax/dev/*.[ch] 12APMAX= ../pmax/pmax/*.s 13 14# Directories in which to place pmax tags links 15DPMAX= pmax dev include 16 17tags: FRC 18 -ctags -dtf ${TPMAX} ${COMM} ${SPMAX} 19 egrep "^LEAF(.*)|^ALEAF(.*)|^NON_LEAF(.*)" ${APMAX} | \ 20 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 21 >> ${TPMAX} 22 sort -o ${TPMAX} ${TPMAX} 23 24links: 25 -for i in ${DPMAX}; do \ 26 (cd $$i && rm -f tags; ln -s ../tags tags); done 27 28FRC: 29