summaryrefslogtreecommitdiff
path: root/distrib/Makefile-bin.in
diff options
context:
space:
mode:
authorsof <unknown>1998-02-09 12:41:41 +0000
committersof <unknown>1998-02-09 12:41:41 +0000
commit75dffefc2018b3fd8bc41c87dd6b02f0975992d4 (patch)
tree0562729f86e5f765ecdda5162a810c7b323e19e6 /distrib/Makefile-bin.in
parentb7633cd5e6ac66e7ea8dc75b8e19d308f885eb4e (diff)
downloadhaskell-75dffefc2018b3fd8bc41c87dd6b02f0975992d4.tar.gz
[project @ 1998-02-09 12:41:41 by sof]
Perform UNC->DOS translation on what bash-cygwin32's pwd returns.
Diffstat (limited to 'distrib/Makefile-bin.in')
-rw-r--r--distrib/Makefile-bin.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/distrib/Makefile-bin.in b/distrib/Makefile-bin.in
index 199145bf5f..5e2493ac0c 100644
--- a/distrib/Makefile-bin.in
+++ b/distrib/Makefile-bin.in
@@ -190,10 +190,14 @@ mk-version-symlinks ::
fi;\
done
+# Convert pwd's UNC reported path into DOS style
+# (cygwin32 only.)
+CURRENT_DIR = $(shell pwd | sed 's|^//\(.\)|\1:|' )
+
in-place ::
- $(MAKE) $(MFLAGS) config-pkgs bindir=`pwd`/bin/$(platform)/$(package)-$(version) libdir=`pwd`/lib/$(platform) datadir=`pwd`/share/$(package)-$(version)
+ $(MAKE) $(MFLAGS) config-pkgs bindir=$(CURRENT_DIR)/bin/$(platform)/$(package)-$(version) libdir=$(CURRENT_DIR)/lib/$(platform) datadir=$(CURRENT_DIR)/share/$(package)-$(version)
$(MAKE) $(MFLAGS) mk-version-symlinks
- @echo "Finished configuring..to use, add `pwd`/bin/$(platform)/$(package)-$(version) to your PATH."
+ @echo "Finished configuring..to use, add $(CURRENT_DIR)/bin/$(platform)/$(package)-$(version) to your PATH."
install-dirs ::
$(INSTALL_DIR) $(bindir)