diff options
author | steve <steve@FreeBSD.org> | 1998-05-31 22:40:49 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-05-31 22:40:49 +0000 |
commit | 5423c2940313b37cb55947874ea06c472233851b (patch) | |
tree | 896226c8197b5d50104bebd24f53e558ec73d113 /sys | |
parent | ab46ab788d4d787d6074db8ba2e909cc5f013772 (diff) | |
download | FreeBSD-src-5423c2940313b37cb55947874ea06c472233851b.zip FreeBSD-src-5423c2940313b37cb55947874ea06c472233851b.tar.gz |
Make this ${.OBJDIR} and ${.CURDIR} aware.
PR: 2565
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/Makefile | 21 | ||||
-rw-r--r-- | sys/i386/Makefile | 21 |
2 files changed, 26 insertions, 16 deletions
diff --git a/sys/amd64/Makefile b/sys/amd64/Makefile index 4ad5a34..dd74cdd 100644 --- a/sys/amd64/Makefile +++ b/sys/amd64/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 diff --git a/sys/i386/Makefile b/sys/i386/Makefile index 4ad5a34..dd74cdd 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 |