OSDN Git Service

* Makefile.common: Change method for finding current directory.
authorcgf <cgf>
Tue, 15 May 2001 05:11:55 +0000 (05:11 +0000)
committercgf <cgf>
Tue, 15 May 2001 05:11:55 +0000 (05:11 +0000)
winsup/ChangeLog
winsup/Makefile.common

index e2bac6e..caba4ed 100644 (file)
@@ -1,3 +1,7 @@
+Tue May 15 01:09:56 2001  Christopher Faylor <cgf@cygnus.com>
+
+       * Makefile.common: Change method for finding current directory.
+
 Sat May  5 00:14:03 2001  Christopher Faylor <cgf@cygnus.com>
 
        * configure.in: Fix typo.
index 1f2d04c..e9774ef 100644 (file)
@@ -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:=../..