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>2000-09-01 00:39:32 +0400
committerChristopher Faylor <me@cgf.cx>2000-09-01 00:39:32 +0400
commitdc941354a1cab91227c5c762beed52c61a165f9e (patch)
tree783281088da58d5b45cc1f2a760d89e9f1abaf2e /winsup/Makefile.common
parent83a27d401a714aed642dc91f12ca7c11642a29a7 (diff)
* Makefile.in: Normalize 'pwd' based on location of winsup.
Diffstat (limited to 'winsup/Makefile.common')
-rw-r--r--winsup/Makefile.common5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/Makefile.common b/winsup/Makefile.common
index 550aaddfc..be83ba41b 100644
--- a/winsup/Makefile.common
+++ b/winsup/Makefile.common
@@ -28,12 +28,13 @@ endif
endif
pwd:=${shell pwd}
-ifneq (,${filter-out /%,$(pwd)})
+dummy_pwd:=${word 1,${subst winsup/,winsup ,$(pwd)}}/foo
+ifneq (,${filter-out /%,$(dummy_pwd)})
bupdir:=..
bupdir1:=../..
bupdir2:=../../..
else
- bupdir:=${patsubst %:::,%,${patsubst %/:::,%,$(dir $(pwd)):::}}
+ bupdir:=${patsubst %:::,%,${patsubst %/:::,%,$(dir $(dummy_pwd)):::}}
ifneq (,${findstring /,$(bupdir)})
bupdir1:=${patsubst %:::,%,${patsubst %/:::,%,$(dir $(bupdir)):::}}
else