Home | History | Annotate | Line # | Download | only in atari
Makefile revision 1.2
      1 #	$NetBSD: Makefile,v 1.2 1996/03/18 21:08:36 leo Exp $
      2 #
      3 #	from: @(#)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 SUBDIR= stand
     13 
     14 # Makefile for atari tags file
     15 
     16 TATARI=	$S/arch/atari/tags
     17 SATARI=	$S/arch/m68k/m68k/*.c $S/arch/m68k/include/*.h \
     18 	$S/arch/atari/atari/*.[ch] $S/arch/atari/include/*.h \
     19 	$S/arch/atari/dev/*.[ch]
     20 AATARI=	$S/arch/m68k/m68k/*.s $S/arch/atari/atari/*.s
     21 
     22 # Directories in which to place atari tags links
     23 DATARI=	atari dev include
     24 
     25 TAGS:
     26 	-etags -dt ${COMM} ${SATARI} ${AATARI}
     27 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AATARI} | \
     28 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     29 	    >> ${TATARI}/tags
     30 
     31 tags:
     32 	-ctags -dtf ${TATARI} ${COMM} ${SATARI}
     33 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AATARI} | \
     34 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     35 	    >> ${TATARI}
     36 	sort -o ${TATARI} ${TATARI}
     37 
     38 links:
     39 	-for i in ${DATARI}; 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.subdir.mk>
     44 
     45