From 40c414f03c0467750848e7b4afbe51ffdadd9c27 Mon Sep 17 00:00:00 2001 From: Per Fogelstrom Date: Sun, 11 May 1997 16:21:28 +0000 Subject: Make "make tags" work. (I hope...) --- sys/arch/arc/Makefile | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) (limited to 'sys') diff --git a/sys/arch/arc/Makefile b/sys/arch/arc/Makefile index 438958311f7..408f10340ed 100644 --- a/sys/arch/arc/Makefile +++ b/sys/arch/arc/Makefile @@ -1,31 +1,34 @@ # from: @(#)Makefile 8.1 (Berkeley) 6/16/93 -# $Id: Makefile,v 1.3 1996/09/19 06:02:28 deraadt Exp $ +# $Id: Makefile,v 1.4 1997/05/11 16:21:27 pefo Exp $ # Makefile for arc links, tags file .include "../../kern/Make.tags.inc" -all: - @echo "make links or tags only" -DIRS= arc conf dev include isa pica NOPROG= noprog -NOOBJ= noobj NOOBJ= noman -links:: - -for i in ${DIRS}; do \ - (cd $$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done +TARC= ../arc/tags +SARC= ../arc/arc/*.[ch] ../arc/dev/*.[ch] ../arc/dti/*.[ch] \ + ../arc/include/*.h ../arc/isa/*.[ch] ../arc/pci/*.[ch] \ + ../arc/pica/*.[ch] +AARC= ../arc/arc/*.S -PICA= /sys/pica/dev/*.[ch] /sys/pica/include/*.[ch] \ - /sys/pica/pica/*.[ch] /sys/pica/ultrix/*.[ch] -APICA= /sys/pica/pica/*.s +DARC= arc dev dti include isa pci pica -tags:: - -ctags -wdtif ${COMM} ${PICA} - egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${APICA} | \ +tags: + -ctags -wdtf ${TARC} ${COMM} ${SARC} + egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AARC} | \ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ - >> tags - sort -o tags tags + >> ${TARC} + sort -o ${TARC} ${TARC} + +links: + -for i in ${DARC}; do \ + cd $$i && rm -f tags; ln -s ../tags tags; done + + +obj: _SUBDIRUSE .include -- cgit v1.2.3