NetBSD/sys/arch/newsmips/Makefile

30 lines
812 B
Makefile
Raw Normal View History

1998-03-05 18:03:20 +03:00
# $NetBSD: Makefile,v 1.1 1998/03/05 15:03:20 tsubai 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
.include <bsd.subdir.mk>