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