1 1.2 mycroft # from: @(#)Makefile 7.3 (Berkeley) 6/9/91 2 1.7 chopps # $Id: Makefile,v 1.7 1994/03/09 15:56:08 chopps Exp $ 3 1.7 chopps S=${BSDSRCDIR}/sys 4 1.7 chopps COMM= $S/vm/*.[ch] $S/ufs/*.[ch] $S/sys/*.h $S/compat/sunos/*.[ch] \ 5 1.7 chopps $S/nfs/*.[ch] $S/netns/*.[ch] $S/netiso/*.[ch] \ 6 1.7 chopps $S/netiso/xebec/*.[ch] $S/netinet/*.[ch] $S/netccitt/*.[ch] \ 7 1.7 chopps $S/net/*.[ch] $S/miscfs/*/*.[ch] $S/kern/*.[ch] 8 1.1 mw 9 1.3 mw # Makefile for amiga tags file 10 1.1 mw 11 1.1 mw all: 12 1.1 mw @echo "make tags or links only" 13 1.1 mw 14 1.5 chopps TAMIGA= $S/arch/amiga/tags 15 1.7 chopps SAMIGA= $S/arch/m68k/m68k/*.c $S/arch/m68k/include/*.h \ 16 1.7 chopps $S/arch/amiga/amiga/*.[ch] $S/arch/amiga/include/*.h \ 17 1.7 chopps $S/arch/amiga/dev/*.[ch] 18 1.7 chopps AAMIGA= $S/arch/m68k/m68k/*.s $S/arch/amiga/amiga/*.s 19 1.1 mw 20 1.3 mw # Directories in which to place amiga tags links 21 1.5 chopps DAMIGA= amiga dev include 22 1.1 mw 23 1.7 chopps TAGS: 24 1.7 chopps -etags -dt ${COMM} ${SAMIGA} ${AAMIGA} 25 1.7 chopps # egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMIGA} | \ 26 1.7 chopps # sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 27 1.7 chopps # >> ${TAMIGA}/tags 28 1.7 chopps 29 1.1 mw tags: 30 1.7 chopps -ctags -dtf ${TAMIGA}/tags ${COMM} ${SAMIGA} 31 1.7 chopps egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMIGA} | \ 32 1.7 chopps sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 33 1.7 chopps >> ${TAMIGA}/tags 34 1.7 chopps sort -o ${TAMIGA}/tags ${TAMIGA}/tags 35 1.1 mw 36 1.1 mw links: 37 1.7 chopps -for i in ${DAMIGA}; do \ 38 1.7 chopps rm -f $$i/tags; rm -f $$i/TAGS ; \ 39 1.7 chopps ln -s ../tags $$i/tags; ln -s ../TAGS $$i/TAGS; done 40 1.5 chopps 41 1.6 chopps .include <bsd.prog.mk> 42 1.7 chopps 43