aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-01-22 10:56:42 +1100
committernyamatongwe <devnull@localhost>2011-01-22 10:56:42 +1100
commit44b58be46765c9a7646e86a11ee99515b97783c5 (patch)
tree2813e10aaf6a6be364175c30ff5ed62229c5d5d4
parenta129d2b80c29932e6794de2d6097e0c64ca9312e (diff)
downloadscintilla-mirror-44b58be46765c9a7646e86a11ee99515b97783c5.tar.gz
Check for Win32 and use DEL instead of rm. Ensures 'make clean' works on Windows.
-rw-r--r--gtk/makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk/makefile b/gtk/makefile
index 40c305180..f6a3b0afa 100644
--- a/gtk/makefile
+++ b/gtk/makefile
@@ -17,12 +17,20 @@ endif
AR = ar
RANLIB = touch
+# Environment variable windir always defined on Win32
+
ifndef windir
ifeq ($(shell uname),Darwin)
RANLIB = ranlib
endif
endif
+ifdef windir
+DEL = del /q
+else
+DEL = rm -f
+endif
+
COMPLIB=../bin/scintilla.a
vpath %.h ../src ../include ../lexlib
@@ -57,7 +65,7 @@ LEXOBJS:=$(addsuffix .o,$(basename $(notdir $(wildcard ../lexers/Lex*.cxx))))
all: $(COMPLIB)
clean:
- rm -f *.o $(COMPLIB)
+ $(DEL) *.o $(COMPLIB)
deps:
$(CC) -MM $(CONFIGFLAGS) $(CXXFLAGS) *.cxx ../src/*.cxx | sed -e 's/\/usr.* //' | grep [a-zA-Z] >deps.mak