diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 1997-05-11 16:21:28 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 1997-05-11 16:21:28 +0000 |
commit | 40c414f03c0467750848e7b4afbe51ffdadd9c27 (patch) | |
tree | b429a62aa5095bfd6e173d47cbe7e1baa12115f1 /sys | |
parent | 151d2a56a55903e24b7c9b3b698823749d469b52 (diff) |
Make "make tags" work. (I hope...)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/arc/Makefile | 35 |
1 files changed, 19 insertions, 16 deletions
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 <bsd.prog.mk> |