Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-05-15 09:11:55 +0400
committerChristopher Faylor <me@cgf.cx>2001-05-15 09:11:55 +0400
commitf162ad82fc34ca6fc0ca783f86525cecfaa9de8d (patch)
tree81deb5c6d196bc14c3b58edefd707fa57dad2367 /winsup/Makefile.common
parent7ede23a128ebd35727944fae7019e294d8c98261 (diff)
* Makefile.common: Change method for finding current directory.
Diffstat (limited to 'winsup/Makefile.common')
-rw-r--r--winsup/Makefile.common8
1 files changed, 7 insertions, 1 deletions
diff --git a/winsup/Makefile.common b/winsup/Makefile.common
index 1f2d04ca5..e9774ef98 100644
--- a/winsup/Makefile.common
+++ b/winsup/Makefile.common
@@ -28,7 +28,13 @@ endif
endif
pwd:=${shell pwd}
-here:=${word 1,${subst winsup/,winsup ,$(pwd)}}/cygwin
+ifneq "${filter winsup%,${notdir $(pwd)}}" ""
+a:=${shell ${filter winsup%,${notdir $(pwd)}} >/dev/tty}
+ here:=${pwd}/cygwin
+else
+a:=${shell ${filter winsup%,${notdir $(pwd)}} >/dev/tty}
+ here:=${dir $(pwd)}cygwin
+endif
bupdir:=${shell cd $(here)/..; pwd}
ifneq (,${filter-out /%,$(bupdir)})
bupdir1:=../..