Home | History | Annotate | Line # | Download | only in atari
Makefile revision 1.3
      1 #	$NetBSD: Makefile,v 1.3 1997/10/11 09:10:26 mycroft Exp $
      2 
      3 # Makefile for atari tags file and boot blocks
      4 
      5 # Find where m68k source files are for inclusion in tags
      6 .include <../m68k/Makefile.inc>
      7 
      8 TATARI=	../atari/tags
      9 SATARI=	../atari/atari/*.[ch] ../atari/include/*.h \
     10 	../atari/dev/*.[ch]
     11 AATARI=	../atari/atari/*.s
     12 
     13 # Directories in which to place tags links
     14 DATARI=	atari dev include
     15 
     16 .include "../../kern/Make.tags.inc"
     17 
     18 tags:
     19 	-ctags -wdtf ${TATARI} ${SATARI} ${SM68K} ${COMM}
     20 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AATARI} ${AM68K} | \
     21 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     22 	    >> ${TATARI}
     23 	sort -o ${TATARI} ${TATARI}
     24 
     25 links:
     26 	-for i in ${DATARI}; do \
     27 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     28 
     29 
     30 SUBDIR= stand
     31 
     32 .include <bsd.subdir.mk>
     33