diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-01-01 10:21:25 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-01-01 10:21:25 +1100 |
| commit | 3e959c127418a2053db1ea6acbe4ee9030b70fe1 (patch) | |
| tree | 086da4b70bf9e85a3e9af203af691574bd2d211b /win32/makefile | |
| parent | 4f1b30ebe70a6475ffeca1ce2c0dc48c8e70a5f9 (diff) | |
| download | scintilla-mirror-3e959c127418a2053db1ea6acbe4ee9030b70fe1.tar.gz | |
Be more accurate for 'make clean' as bin directory now shared with Lexilla.
Diffstat (limited to 'win32/makefile')
| -rw-r--r-- | win32/makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/makefile b/win32/makefile index 45c9c525b..2442ca65e 100644 --- a/win32/makefile +++ b/win32/makefile @@ -31,6 +31,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 @@ -64,7 +67,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)) %.o: %.cxx $(CXX) $(CXX_ALL_FLAGS) $(CXXFLAGS) -c $< |
