From c8bfbcc55d83ff0156fcb02e07baf98fd17fcea0 Mon Sep 17 00:00:00 2001 From: Hartmut Reuter Date: Mon, 5 Mar 2001 15:37:46 +0000 Subject: [PATCH] allow-shadowed-src-trees-20010305 So "make links" will work if src was a symlink. --- src/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 8d528f9..726cf48 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; -- 1.9.4