summaryrefslogtreecommitdiff
path: root/nt/gmake.defs
diff options
context:
space:
mode:
authorAndrew Innes <andrewi@gnu.org>2003-01-15 12:04:38 +0000
committerAndrew Innes <andrewi@gnu.org>2003-01-15 12:04:38 +0000
commite2f4caea36baf88c95a4fddc4f57c969d8f78834 (patch)
treefe676a472bda1be8145b8ff9287773008ef806bf /nt/gmake.defs
parentdf07339abb72bacf8538628d5abcbbdfd4e0e54d (diff)
downloademacs-e2f4caea36baf88c95a4fddc4f57c969d8f78834.tar.gz
(CURDIR): Convert to native Windows format (with
forward slashes), to support building with Cygwin builds of make.
Diffstat (limited to 'nt/gmake.defs')
-rw-r--r--nt/gmake.defs4
1 files changed, 4 insertions, 0 deletions
diff --git a/nt/gmake.defs b/nt/gmake.defs
index 2235417aca4..9671142be63 100644
--- a/nt/gmake.defs
+++ b/nt/gmake.defs
@@ -78,6 +78,10 @@ endif
MAKETYPE=gmake
+# Convert CURDIR to native file name, if in Cygwin format
+ifeq "$(shell cygpath $(CURDIR))" "$(CURDIR)"
+CURDIR := $(shell cygpath -m $(CURDIR))
+endif
THISDIR = .
# Cygwin has changed quoting rules somewhat since b20, in a way that