Makefile revision 1.10
11.10Scgd#	$NetBSD: Makefile,v 1.10 1994/10/26 02:01:24 cgd Exp $
21.10Scgd
31.10Scgd#	@(#)Makefile	7.3 (Berkeley) 6/9/91
41.10Scgd
51.7SchoppsS=${BSDSRCDIR}/sys
61.8SchoppsCOMM=	$S/vm/*.[ch] $S/ufs/*.[ch] $S/sys/*.h $S/compat/sunos/*.[ch] \
71.8Schopps	$S/nfs/*.[ch] $S/netns/*.[ch] $S/netiso/*.[ch] \
81.8Schopps	$S/netiso/xebec/*.[ch] $S/netinet/*.[ch] $S/netccitt/*.[ch] \
91.9Schopps	$S/net/*.[ch] $S/miscfs/*/*.[ch] $S/kern/*.[ch] $S/dev/*.[ch] \
101.9Schopps	$S/scsi/*.[ch] $S/lib/libkern/m68k/*.[ch] $S/lib/libkern/*.[ch]
111.1Smw
121.3Smw# Makefile for amiga tags file
131.1Smw
141.1Smwall:
151.1Smw	@echo "make tags or links only"
161.1Smw
171.5SchoppsTAMIGA=	$S/arch/amiga/tags
181.8SchoppsSAMIGA=	$S/arch/m68k/m68k/*.c $S/arch/m68k/include/*.h \
191.8Schopps	$S/arch/amiga/amiga/*.[ch] $S/arch/amiga/include/*.h \
201.8Schopps	$S/arch/amiga/dev/*.[ch]
211.7SchoppsAAMIGA=	$S/arch/m68k/m68k/*.s $S/arch/amiga/amiga/*.s
221.1Smw
231.3Smw# Directories in which to place amiga tags links
241.5SchoppsDAMIGA=	amiga dev include
251.1Smw
261.7SchoppsTAGS:
271.8Schopps	-etags -dt ${COMM} ${SAMIGA} ${AAMIGA}
281.8Schopps	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMIGA} | \
291.8Schopps	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
301.8Schopps	    >> ${TAMIGA}/tags
311.7Schopps
321.1Smwtags:
331.9Schopps	-ctags -dtf ${TAMIGA} ${COMM} ${SAMIGA}
341.8Schopps	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMIGA} | \
351.8Schopps	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
361.9Schopps	    >> ${TAMIGA}
371.9Schopps	sort -o ${TAMIGA} ${TAMIGA}
381.1Smw
391.1Smwlinks:
401.8Schopps	-for i in ${DAMIGA}; do \
411.8Schopps	    rm -f $$i/tags; rm -f $$i/TAGS ; \
421.8Schopps	    ln -s ../tags $$i/tags; ln -s ../TAGS $$i/TAGS; done
431.5Schopps
441.6Schopps.include <bsd.prog.mk>
451.7Schopps
46