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