NetBSD/sys/arch/next68k/Makefile

45 lines
1.2 KiB
Makefile
Raw Normal View History

2000-10-05 22:22:41 +04:00
# $NetBSD: Makefile,v 1.4 2000/10/05 18:22:41 tsutsui Exp $
1998-06-09 11:53:05 +04:00
# Makefile for next68k tags file and boot blocks
2000-10-05 22:22:41 +04:00
# Find where m68k source files are for inclusion in tags
1998-06-09 11:53:05 +04:00
.include <../m68k/Makefile.inc>
ENEXT68K= ../next68k/TAGS
TNEXT68K= ../next68k/tags
SNEXT68K= ../next68k/next68k/*.[ch] ../next68k/include/*.h \
../next68k/dev/*.[ch]
ANEXT68K= ../next68k/next68k/*.s
# Directories in which to place tags links
DNEXT68K= dev next68k include
1999-07-20 12:55:30 +04:00
SYSDIR= ../..
1998-06-09 11:53:05 +04:00
.include "../../kern/Make.tags.inc"
tags:
-ctags -wdtf ${TNEXT68K} ${SNEXT68K} ${SM68K} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANEXT68K} ${AM68K} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TNEXT68K}
sort -o ${TNEXT68K} ${TNEXT68K}
1999-07-20 12:55:30 +04:00
.ifmake TAGS
COMM!= find ${SYSDIR} -name "arch" -prune -o -name "*.[ch]" -print
.endif
1998-06-09 11:53:05 +04:00
TAGS:
1999-07-20 12:55:30 +04:00
emacs-etags -o ${ENEXT68K} ${SNEXT68K} ${SM68K} ${COMM}
1998-06-09 11:53:05 +04:00
emacs-etags -a -l none \
--regex='/^\(ALT\)?ENTRY\(_NOPROFILE\)?(\([a-zA-Z0-9_]*\))\|^GLOBAL(\([a-zA-Z0-9_]*\))/\3\4/' \
-o ${ENEXT68K} ${ANEXT68K} ${AM68K}
links:
-for i in ${DNEXT68K}; do \
cd $$i && rm -f tags; ln -s ../tags tags; done
SUBDIR= include stand
1998-06-09 11:53:05 +04:00
.include <bsd.subdir.mk>