allow-shadowed-src-trees-20010305
authorHartmut Reuter <reuter@rzg.mpg.de>
Mon, 5 Mar 2001 15:37:46 +0000 (15:37 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 5 Mar 2001 15:37:46 +0000 (15:37 +0000)
So "make links" will work if src was a symlink.

src/Makefile

index 8d528f9..726cf48 100644 (file)
@@ -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;