aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Innes2000-12-06 13:40:28 +0000
committerAndrew Innes2000-12-06 13:40:28 +0000
commit8cba0ed7491423afdfd0ecc6e15dbf6e01a391d4 (patch)
tree55fe54b1ff855835b3ef30ce75a5410faed37447
parent3887b4498e3d7233f86745c5784e09ccfa5a9145 (diff)
downloademacs-8cba0ed7491423afdfd0ecc6e15dbf6e01a391d4.tar.gz
emacs-8cba0ed7491423afdfd0ecc6e15dbf6e01a391d4.zip
(NEW_CYGWIN): New define.
(DQUOTE) [NEW_CYGWIN]: Cygnus changed the quoting rules since b20, so we need to adjust how we escape embedded quotes.
-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
76SETLOADPATH=EMACSLOADPATH=../lisp 76SETLOADPATH=EMACSLOADPATH=../lisp
77endif 77endif
78 78
79# Cygwin has changed quoting rules somewhat since b20, in a way that
80# affects makefiles using sh as the command processor, so we need to
81# detect which rules to use.
82ifdef USING_SH
83sh_output := $(shell echo foo")
84ifeq "$(sh_output)" ""
85NEW_CYGWIN = 1
86endif
87endif
88
79MAKEDIR = $(CURDIR) 89MAKEDIR = $(CURDIR)
80ALL_DEPS = $^ 90ALL_DEPS = $^
81EMPTY = 91EMPTY =
@@ -179,7 +189,9 @@ CP = cp -f
179CP_DIR = cp -rf 189CP_DIR = cp -rf
180DEL = rm 190DEL = rm
181DEL_TREE = rm -r 191DEL_TREE = rm -r
192
182ifdef USING_SH 193ifdef USING_SH
194
183IFNOTSAMEDIR = if [ ! -s ../same-dir.tst ] ; then 195IFNOTSAMEDIR = if [ ! -s ../same-dir.tst ] ; then
184FOREACH = for f in 196FOREACH = for f in
185FORVAR = $${f} 197FORVAR = $${f}
@@ -187,8 +199,14 @@ FORDO = ; do
187ENDFOR = ; done 199ENDFOR = ; done
188ENDIF = ; fi 200ENDIF = ; fi
189ARGQUOTE = ' 201ARGQUOTE = '
202ifdef NEW_CYGWIN
203DQUOTE = "
204else
190DQUOTE = "" 205DQUOTE = ""
206endif
207
191else 208else
209
192IFNOTSAMEDIR = if not exist ../same-dir.tst 210IFNOTSAMEDIR = if not exist ../same-dir.tst
193FOREACH = for %%f in ( 211FOREACH = for %%f in (
194FORVAR = %%f 212FORVAR = %%f
@@ -197,6 +215,7 @@ ENDFOR =
197ENDIF = 215ENDIF =
198ARGQUOTE = " 216ARGQUOTE = "
199DQUOTE = \" 217DQUOTE = \"
218
200endif 219endif
201 220
202# The location of the icon file 221# The location of the icon file