Makefile revision 1.1
1# from: @(#)Makefile 7.3 (Berkeley) 6/9/91 2# $Id: Makefile,v 1.1 1994/07/02 13:11:10 briggs Exp $ 3S=${BSDSRCDIR}/sys 4COMM= $S/vm/*.[ch] $S/ufs/*/*.[ch] $S/sys/*.h $S/compat/sunos/*.[ch] \ 5 $S/isofs/*/*.[ch] \ 6 $S/nfs/*.[ch] $S/netns/*.[ch] $S/netiso/*.[ch] \ 7 $S/netiso/xebec/*.[ch] $S/netinet/*.[ch] $S/netccitt/*.[ch] \ 8 $S/net/*.[ch] $S/miscfs/*/*.[ch] $S/kern/*.[ch] $S/dev/*.[ch] \ 9 $S/scsi/*.[ch] $S/lib/libkern/arch/m68k/*.[ch] $S/lib/libkern/*.[ch] 10 11# Makefile for mac68k tags file 12 13all: 14 @echo "make tags or links only" 15 16TMAC68K= $S/arch/mac68k/tags 17SMAC68K= $S/arch/m68k/m68k/*.c $S/arch/m68k/include/*.h \ 18 $S/arch/mac68k/mac68k/*.[ch] $S/arch/mac68k/include/*.h \ 19 $S/arch/mac68k/dev/*.[ch] 20AMAC68K= $S/arch/m68k/m68k/*.s $S/arch/mac68k/mac68k/*.s 21 22# Directories in which to place mac68k tags links 23DMAC68K= mac68k dev include 24 25TAGS: 26 -etags -dt ${COMM} ${SMAC68K} ${AMAC68K} 27 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMAC68K} | \ 28 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 29 >> ${TMAC68K}/tags 30 31tags: 32 -ctags -dtf ${TMAC68K} ${COMM} ${SMAC68K} 33 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMAC68K} | \ 34 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 35 >> ${TMAC68K} 36 sort -o ${TMAC68K} ${TMAC68K} 37 38links: 39 -for i in ${DMAC68K}; 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