Mercurial > emacs
comparison nt/gmake.defs @ 34257:8f4d667d32c2
(NEW_CYGWIN): New define.
(DQUOTE) [NEW_CYGWIN]: Cygnus changed the quoting rules since b20,
so we need to adjust how we escape embedded quotes.
author | Andrew Innes <andrewi@gnu.org> |
---|---|
date | Wed, 06 Dec 2000 13:40:28 +0000 |
parents | 7e706d145fab |
children | 1e1283190fbc |
comparison
equal
deleted
inserted
replaced
34256:82991c789888 | 34257:8f4d667d32c2 |
---|---|
72 else | 72 else |
73 USING_SH = 1 | 73 USING_SH = 1 |
74 THE_SHELL = $(SHELL) | 74 THE_SHELL = $(SHELL) |
75 SHELLTYPE=SH | 75 SHELLTYPE=SH |
76 SETLOADPATH=EMACSLOADPATH=../lisp | 76 SETLOADPATH=EMACSLOADPATH=../lisp |
77 endif | |
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. | |
82 ifdef USING_SH | |
83 sh_output := $(shell echo foo") | |
84 ifeq "$(sh_output)" "" | |
85 NEW_CYGWIN = 1 | |
86 endif | |
77 endif | 87 endif |
78 | 88 |
79 MAKEDIR = $(CURDIR) | 89 MAKEDIR = $(CURDIR) |
80 ALL_DEPS = $^ | 90 ALL_DEPS = $^ |
81 EMPTY = | 91 EMPTY = |
177 | 187 |
178 CP = cp -f | 188 CP = cp -f |
179 CP_DIR = cp -rf | 189 CP_DIR = cp -rf |
180 DEL = rm | 190 DEL = rm |
181 DEL_TREE = rm -r | 191 DEL_TREE = rm -r |
192 | |
182 ifdef USING_SH | 193 ifdef USING_SH |
194 | |
183 IFNOTSAMEDIR = if [ ! -s ../same-dir.tst ] ; then | 195 IFNOTSAMEDIR = if [ ! -s ../same-dir.tst ] ; then |
184 FOREACH = for f in | 196 FOREACH = for f in |
185 FORVAR = $${f} | 197 FORVAR = $${f} |
186 FORDO = ; do | 198 FORDO = ; do |
187 ENDFOR = ; done | 199 ENDFOR = ; done |
188 ENDIF = ; fi | 200 ENDIF = ; fi |
189 ARGQUOTE = ' | 201 ARGQUOTE = ' |
202 ifdef NEW_CYGWIN | |
203 DQUOTE = " | |
204 else | |
190 DQUOTE = "" | 205 DQUOTE = "" |
191 else | 206 endif |
207 | |
208 else | |
209 | |
192 IFNOTSAMEDIR = if not exist ../same-dir.tst | 210 IFNOTSAMEDIR = if not exist ../same-dir.tst |
193 FOREACH = for %%f in ( | 211 FOREACH = for %%f in ( |
194 FORVAR = %%f | 212 FORVAR = %%f |
195 FORDO = ) do | 213 FORDO = ) do |
196 ENDFOR = | 214 ENDFOR = |
197 ENDIF = | 215 ENDIF = |
198 ARGQUOTE = " | 216 ARGQUOTE = " |
199 DQUOTE = \" | 217 DQUOTE = \" |
218 | |
200 endif | 219 endif |
201 | 220 |
202 # The location of the icon file | 221 # The location of the icon file |
203 EMACS_ICON_PATH = ../nt/emacs.ico | 222 EMACS_ICON_PATH = ../nt/emacs.ico |
204 | 223 |