From a4f54cdf0820f6015f8acd9c41bd616b0c058cdd Mon Sep 17 00:00:00 2001 From: Steve Price Date: Sun, 31 May 1998 22:40:49 +0000 Subject: Make this ${.OBJDIR} and ${.CURDIR} aware. PR: 2565 --- sys/i386/Makefile | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'sys/i386') diff --git a/sys/i386/Makefile b/sys/i386/Makefile index 4ad5a34556fb..dd74cdd9ba67 100644 --- a/sys/i386/Makefile +++ b/sys/i386/Makefile @@ -1,17 +1,18 @@ # from: @(#)Makefile 7.3 (Berkeley) 6/9/91 -# $Id$ +# $Id: Makefile,v 1.4 1997/02/22 09:29:47 peter Exp $ # Makefile for i386 tags file all: @echo "make tags or links only" -TI386= ../i386/tags -SI386= ../i386/i386/*.[ch] ../i386/include/*.h ../i386/isa/*.[ch] -AI386= ../i386/i386/*.s +TI386= ${.OBJDIR}/../i386/tags +SI386= ${.CURDIR}/../i386/i386/*.[ch] ${.CURDIR}/../i386/include/*.h \ + ${.CURDIR}/../i386/isa/*.[ch] +AI386= ${.CURDIR}/../i386/i386/*.s # Directories in which to place i386 tags links -DI386= eisa isa mca include +DI386= eisa isa include tags: -ctags -dtf ${TI386} ${COMM} ${SI386} @@ -20,6 +21,10 @@ tags: >> ${TI386} sort -o ${TI386} ${TI386} -links: - -for i in ${DI386}; do \ - cd $$i && rm -f tags; ln -s ../tags tags; done +#XXX This doesn't work because ${.OBJDIR}/$i doesn't exist +# +#links: +# -for i in ${DI386}; do \ +# (cd ${.CURDIR}/$$i && rm -f ${.OBJDIR}/tags; \ +# ln -s ${.OBJDIR}/../tags ${.OBJDIR}/tags) \ +# done -- cgit v1.2.3