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