Makefile revision 1.1
1# $NetBSD: Makefile,v 1.1 1998/06/09 07:53:05 dbj Exp $ 2 3# Makefile for next68k tags file and boot blocks 4 5# Find where m68k sourc717e files are for inclusion in tags 6.include <../m68k/Makefile.inc> 7 8ENEXT68K= ../next68k/TAGS 9TNEXT68K= ../next68k/tags 10SNEXT68K= ../next68k/next68k/*.[ch] ../next68k/include/*.h \ 11 ../next68k/dev/*.[ch] 12ANEXT68K= ../next68k/next68k/*.s 13 14# Directories in which to place tags links 15DNEXT68K= dev next68k include 16 17.include "../../kern/Make.tags.inc" 18 19tags: 20 -ctags -wdtf ${TNEXT68K} ${SNEXT68K} ${SM68K} ${COMM} 21 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANEXT68K} ${AM68K} | \ 22 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 23 >> ${TNEXT68K} 24 sort -o ${TNEXT68K} ${TNEXT68K} 25 26TAGS: 27 emacs-etags -o ${ENEXT68K} ${NEXT68K} ${SM68K} ${COMM} 28 emacs-etags -a -l none \ 29 --regex='/^\(ALT\)?ENTRY\(_NOPROFILE\)?(\([a-zA-Z0-9_]*\))\|^GLOBAL(\([a-zA-Z0-9_]*\))/\3\4/' \ 30 -o ${ENEXT68K} ${ANEXT68K} ${AM68K} 31 32links: 33 -for i in ${DNEXT68K}; do \ 34 cd $$i && rm -f tags; ln -s ../tags tags; done 35 36 37SUBDIR= stand 38 39.include <bsd.subdir.mk> 40