summaryrefslogtreecommitdiff
path: root/nt
diff options
context:
space:
mode:
authorAndrew Innes <andrewi@gnu.org>2000-12-06 13:40:28 +0000
committerAndrew Innes <andrewi@gnu.org>2000-12-06 13:40:28 +0000
commit8cba0ed7491423afdfd0ecc6e15dbf6e01a391d4 (patch)
tree55fe54b1ff855835b3ef30ce75a5410faed37447 /nt
parent3887b4498e3d7233f86745c5784e09ccfa5a9145 (diff)
downloademacs-8cba0ed7491423afdfd0ecc6e15dbf6e01a391d4.tar.gz
(NEW_CYGWIN): New define.
(DQUOTE) [NEW_CYGWIN]: Cygnus changed the quoting rules since b20, so we need to adjust how we escape embedded quotes.
Diffstat (limited to 'nt')
-rw-r--r--nt/gmake.defs19
1 files changed, 19 insertions, 0 deletions
diff --git a/nt/gmake.defs b/nt/gmake.defs
index 40ae5e1c50f..62de73924fa 100644
--- a/nt/gmake.defs
+++ b/nt/gmake.defs
@@ -76,6 +76,16 @@ SHELLTYPE=SH
SETLOADPATH=EMACSLOADPATH=../lisp
endif
+# Cygwin has changed quoting rules somewhat since b20, in a way that
+# affects makefiles using sh as the command processor, so we need to
+# detect which rules to use.
+ifdef USING_SH
+sh_output := $(shell echo foo")
+ifeq "$(sh_output)" ""
+NEW_CYGWIN = 1
+endif
+endif
+
MAKEDIR = $(CURDIR)
ALL_DEPS = $^
EMPTY =
@@ -179,7 +189,9 @@ CP = cp -f
CP_DIR = cp -rf
DEL = rm
DEL_TREE = rm -r
+
ifdef USING_SH
+
IFNOTSAMEDIR = if [ ! -s ../same-dir.tst ] ; then
FOREACH = for f in
FORVAR = $${f}
@@ -187,8 +199,14 @@ FORDO = ; do
ENDFOR = ; done
ENDIF = ; fi
ARGQUOTE = '
+ifdef NEW_CYGWIN
+DQUOTE = "
+else
DQUOTE = ""
+endif
+
else
+
IFNOTSAMEDIR = if not exist ../same-dir.tst
FOREACH = for %%f in (
FORVAR = %%f
@@ -197,6 +215,7 @@ ENDFOR =
ENDIF =
ARGQUOTE = "
DQUOTE = \"
+
endif
# The location of the icon file