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