NetBSD/sys/arch/evbmips/Makefile
dyoung 82cc8fc351 In sys/kern/Make.tags.inc, create an intermediate variable FINDCOMM.
FINDCOMM contains the find(1) command that produces the list of
NetBSD sources that all architectures share, COMM.  For backwards
compatibility, evaluate FINDCOMM to produce ${COMM}.

In arch/evbmips/Makefile, use FINDCOMM directly, because the
command-line 'echo $COMM ...' was too long.
2007-06-24 01:03:35 +00:00

37 lines
1015 B
Makefile

# $NetBSD: Makefile,v 1.5 2007/06/24 01:03:35 dyoung Exp $
# Makefile for evbmips tags file and boot blocks
# Find where mips source files are for inclusion in tags
.include <../mips/Makefile.inc>
# XXX ! fix this
TEVBMIPS= ${SYSDIR}/arch/evbmips/tags
SEVBMIPS= ${SYSDIR}/arch/evbmips/evbmips/*.[ch] \
${SYSDIR}/arch/evbmips/include/*.h \
${SYSDIR}/arch/evbmips/isa/*.[ch]
AEVBMIPS= ${SYSDIR}/arch/evbmips/evbmips/*.S
# Directories in which to place tags links
DEVBMIPS= evbmips include isa pci
.include "../../kern/Make.tags.inc"
tags:
-rm -f ${TEVBMIPS}
-echo ${SEVBMIPS} ${SMIPS} | xargs ctags -wadtf ${TEVBMIPS}
-${FINDCOMM} | xargs ctags -wadtf ${TEVBMIPS}
egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AEVBMIPS} ${AMIPS} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TEVBMIPS}
sort -o ${TEVBMIPS} ${TEVBMIPS}
links:
-for i in ${DEVBMIPS}; do \
cd $$i && rm -f tags; ln -s ../tags tags; done
SUBDIR= compile include
.include <bsd.subdir.mk>