diff -urN pywin32-221.orig/Pythonwin/Scintilla/makefile_pythonwin pywin32-221/Pythonwin/Scintilla/makefile_pythonwin
--- pywin32-221.orig/Pythonwin/Scintilla/makefile_pythonwin	2017-09-15 08:23:19.000000000 +0100
+++ pywin32-221/Pythonwin/Scintilla/makefile_pythonwin	2017-09-15 08:23:45.000000000 +0100
@@ -4,7 +4,7 @@
 # (but with special macros) and generates the .py
 # from the .h's

-!IFDEF DEBUG
+!IF "$(DEBUG)"=="1"
 DIR_O = ..\Build\Temp\Scintilla\Debug
 !ELSE
 DIR_O = ..\Build\Temp\Scintilla\Release
@@ -22,7 +22,7 @@
 SUB_DIR_O=..\$(DIR_O)
 !endif

-!IFDEF DEBUG
+!IF "$(DEBUG)"=="1"
 SCINTILLA_DLL = $(SUB_DIR_BIN)\Scintilla_d.dll
 !ELSE
 SCINTILLA_DLL = $(SUB_DIR_BIN)\Scintilla.dll
@@ -44,8 +44,8 @@

 ..\pywin\scintilla\scintillacon.py: Include\Scintilla.h Include\SciLexer.h
 	@if not exist $(DIR_PYTHON)\tools\scripts\h2py.py echo ***** Can't find h2py.py in '$(DIR_PYTHON)\tools\scripts - please pass DIR_PYTHON to this script *******
-	$(DIR_PYTHON)\tools\scripts\h2py.py Include\scintilla.h
-	$(DIR_PYTHON)\tools\scripts\h2py.py Include\scilexer.h
+	$(PYTHON) $(DIR_PYTHON)\tools\scripts\h2py.py Include\scintilla.h
+	$(PYTHON) $(DIR_PYTHON)\tools\scripts\h2py.py Include\scilexer.h
     type scintilla.py > ..\pywin\scintilla\scintillacon.py
 	type scilexer.py >> ..\pywin\scintilla\scintillacon.py
 	del scintilla.py scilexer.py
diff -urN pywin32-221.orig/Pythonwin/Scintilla/win32/scintilla.mak pywin32-221/Pythonwin/Scintilla/win32/scintilla.mak
--- pywin32-221.orig/Pythonwin/Scintilla/win32/scintilla.mak	2017-09-15 08:23:19.000000000 +0100
+++ pywin32-221/Pythonwin/Scintilla/win32/scintilla.mak	2017-09-15 08:23:45.000000000 +0100
@@ -70,7 +70,7 @@
 LDFLAGS=$(LDFLAGS) $(NOLOGO)
 !ENDIF

-!IFDEF DEBUG
+!IF "$(DEBUG)"=="1"
 CXXFLAGS=$(CXXFLAGS) $(CXXDEBUG)
 LDFLAGS=$(LDDEBUG) $(LDFLAGS)
 !ELSE
diff -urN pywin32-221.orig/Pythonwin/Scintilla/win32/scintilla_vc6.mak pywin32-221/Pythonwin/Scintilla/win32/scintilla_vc6.mak
--- pywin32-221.orig/Pythonwin/Scintilla/win32/scintilla_vc6.mak	2017-09-15 08:23:19.000000000 +0100
+++ pywin32-221/Pythonwin/Scintilla/win32/scintilla_vc6.mak	2017-09-15 08:23:45.000000000 +0100
@@ -72,7 +72,7 @@
 LDFLAGS=$(LDFLAGS) $(NOLOGO)
 !ENDIF

-!IFDEF DEBUG
+!IF "$(DEBUG)"=="1"
 CXXFLAGS=$(CXXFLAGS) $(CXXDEBUG)
 LDFLAGS=$(LDDEBUG) $(LDFLAGS)
 !ELSE
