From: Hartmut Reuter Date: Mon, 5 Mar 2001 15:37:46 +0000 (+0000) Subject: allow-shadowed-src-trees-20010305 X-Git-Tag: BP-openafs-devel-autoconf~44 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c8bfbcc55d83ff0156fcb02e07baf98fd17fcea0;p=packages%2Fo%2Fopenafs.git allow-shadowed-src-trees-20010305 So "make links" will work if src was a symlink. --- diff --git a/src/Makefile b/src/Makefile index 8d528f9a7..726cf487f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -522,12 +522,14 @@ links: - /bin/rm -rf @sys/dest/* ; - /bin/mkdir @sys/obj ; echo "Create the obj directories" + here=`pwd` ; \ cd src; \ for file in `find [!NW]* -type d -print` ; do \ - /bin/mkdir ../obj/$${file} ; \ + /bin/mkdir $${here}/obj/$${file} ; \ done; echo "Create the obj file links" + here=`pwd` ; \ cd src; \ for file in `find [!NW]* -type f -print` ; do \ - /bin/ln -s `pwd`/$${file} ../obj/$${file} ; \ + /bin/ln -s `pwd`/$${file} $${here}/obj/$${file} ; \ done;