32 lines
842 B
Makefile
32 lines
842 B
Makefile
# $NetBSD: Makefile,v 1.4 2003/01/06 17:40:42 lukem Exp $
|
|
|
|
# Makefile for newsmips tags file
|
|
|
|
# Find where mips source files are for inclusion in tags
|
|
.include <../mips/Makefile.inc>
|
|
|
|
TNEWSMIPS= ../newsmips/tags
|
|
SNEWSMIPS= ../newsmips/newsmips/*.[ch] ../newsmips/include/*.h \
|
|
../newsmips/dev/*.[ch]
|
|
ANEWSMIPS= ../newsmips/newsmips/*.S
|
|
|
|
# Directories in which to place tags links
|
|
DNEWSMIPS= dev include
|
|
|
|
.include "../../kern/Make.tags.inc"
|
|
|
|
tags:
|
|
-ctags -wdtf ${TNEWSMIPS} ${SNEWSMIPS} ${SMIPS} ${COMM}
|
|
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANEWSMIPS} ${AMIPS} | \
|
|
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
|
|
>> ${TNEWSMIPS}
|
|
sort -o ${TNEWSMIPS} ${TNEWSMIPS}
|
|
|
|
links:
|
|
-for i in ${DNEWSMIPS}; do \
|
|
cd $$i && rm -f tags; ln -s ../tags tags; done
|
|
|
|
SUBDIR= compile include stand
|
|
|
|
.include <bsd.subdir.mk>
|