aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/makefile
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-01-01 10:21:25 +1100
committerNeil <nyamatongwe@gmail.com>2020-01-01 10:21:25 +1100
commit2ea5ecaced05f3507e4b76d74cd17d988f1bafc8 (patch)
tree5f994aac0bca3c7f37fffef06f75487d39b95599 /win32/makefile
parent215e051e588219ec41341a27bb87793732cccd88 (diff)
downloadscintilla-mirror-2ea5ecaced05f3507e4b76d74cd17d988f1bafc8.tar.gz
Backport: Be more accurate for 'make clean'.
Backport of changeset 7874:295a6e54d582.
Diffstat (limited to 'win32/makefile')
-rw-r--r--win32/makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/makefile b/win32/makefile
index 695544a8a..71be978c7 100644
--- a/win32/makefile
+++ b/win32/makefile
@@ -35,6 +35,9 @@ WINDRES ?= windres
# Environment variable windir always defined on Win32
+# Take care of changing Unix style '/' directory separator to '\' on Windows
+normalize = $(if $(windir),$(subst /,\,$1),$1)
+
ifdef windir
DEL = $(if $(wildcard $(dir $(SHELL))rm.exe), $(dir $(SHELL))rm.exe -f, del /q)
else
@@ -69,7 +72,7 @@ CXX_ALL_FLAGS =$(DEFINES) $(INCLUDES) $(CXX_BASE_FLAGS)
all: $(COMPONENT) $(LEXCOMPONENT) $(LIBSCI)
clean:
- $(DEL) *.exe *.o *.a *.obj *.dll *.res *.map *.plist
+ $(DEL) *.exe *.o *.a *.obj *.dll *.res *.map *.plist $(call normalize,$(LIBSCI))
ifdef LPEG_LEXER
CXXFLAGS+=-DLPEG_LEXER -I ../lua/src