1 # $NetBSD: Makefile,v 1.11 1997/01/06 12:33:09 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 TAMIGA= $S/arch/amiga/tags 17 SAMIGA= $S/arch/m68k/m68k/*.c $S/arch/m68k/include/*.h \ 18 $S/arch/amiga/amiga/*.[ch] $S/arch/amiga/include/*.h \ 19 $S/arch/amiga/dev/*.[ch] 20 AAMIGA= $S/arch/m68k/m68k/*.s $S/arch/amiga/amiga/*.s 21 22 # Directories in which to place amiga tags links 23 DAMIGA= amiga dev include 24 25 TAGS: 26 -etags -dt ${COMM} ${SAMIGA} ${AAMIGA} 27 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMIGA} | \ 28 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 29 >> ${TAMIGA}/tags 30 31 tags: 32 -ctags -dtf ${TAMIGA} ${COMM} ${SAMIGA} 33 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMIGA} | \ 34 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 35 >> ${TAMIGA} 36 sort -o ${TAMIGA} ${TAMIGA} 37 38 links: 39 -for i in ${DAMIGA}; do \ 40 rm -f $$i/tags; rm -f $$i/TAGS ; \ 41 ln -s ../tags $$i/tags; ln -s ../TAGS $$i/TAGS; done 42 43 .include <bsd.prog.mk> 44 45