From d3086ce90d26579da75ac679454b843499038cef Mon Sep 17 00:00:00 2001 From: dyoung Date: Sat, 4 Aug 2007 05:32:39 +0000 Subject: [PATCH] Reduce differences between sgimips/Makefile and evbmips/Makefile, making the sgimips/Makefile 'tags' target work. --- sys/arch/sgimips/Makefile | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/sys/arch/sgimips/Makefile b/sys/arch/sgimips/Makefile index 2f479dca0110..04bcf9203e72 100644 --- a/sys/arch/sgimips/Makefile +++ b/sys/arch/sgimips/Makefile @@ -1,14 +1,21 @@ -# $NetBSD: Makefile,v 1.3 2003/01/06 17:40:48 lukem Exp $ +# $NetBSD: Makefile,v 1.4 2007/08/04 05:32:39 dyoung Exp $ # Makefile for sgimips tags file # Find where mips source files are for inclusion in tags .include <../mips/Makefile.inc> -TSGIMIPS= ../sgimips/tags -SSGIMIPS= ../sgimips/sgimips/*.[ch] ../sgimips/include/*.h \ - ../sgimips/gio/*.[ch] ../sgimips/pbus/*.[ch] -ASGIMIPS= ../sgimips/sgimips/*.S +TSGIMIPS= ${SYSDIR}/arch/sgimips/tags +SSGIMIPS= ${SYSDIR}/arch/sgimips/sgimips/*.[ch] \ + ${SYSDIR}/arch/sgimips/include/*.h \ + ${SYSDIR}/arch/sgimips/dev/*.[ch] \ + ${SYSDIR}/arch/sgimips/eisa/*.[ch] \ + ${SYSDIR}/arch/sgimips/gio/*.[ch] \ + ${SYSDIR}/arch/sgimips/hpc/*.[ch] \ + ${SYSDIR}/arch/sgimips/ioc/*.[ch] \ + ${SYSDIR}/arch/sgimips/mace/*.[ch] \ + ${SYSDIR}/arch/sgimips/pci/*.[ch] +ASGIMIPS= ${SYSDIR}/arch/sgimips/sgimips/*.S # Directories in which to place tags links DSGIMIPS= dev eisa gio hpc include pci xio @@ -16,16 +23,19 @@ DSGIMIPS= dev eisa gio hpc include pci xio .include "../../kern/Make.tags.inc" tags: - -ctags -wdtf ${TSGIMIPS} ${SSGIMIPS} ${SMIPS} ${COMM} + -rm -f ${TSGIMIPS} + -echo ${SSGIMIPS} ${SMIPS} | xargs ctags -wadtf ${TSGIMIPS} + -${FINDCOMM} | xargs ctags -wadtf ${TSGIMIPS} egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASGIMIPS} ${AMIPS} | \ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ - >> ${TSGIMIPS} + >> ${TSGIMIPS} sort -o ${TSGIMIPS} ${TSGIMIPS} links: -for i in ${DSGIMIPS}; do \ cd $$i && rm -f tags; ln -s ../tags tags; done + SUBDIR= compile include stand .include