diff options
author | nyamatongwe <devnull@localhost> | 2011-01-22 10:56:42 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-01-22 10:56:42 +1100 |
commit | 44b58be46765c9a7646e86a11ee99515b97783c5 (patch) | |
tree | 2813e10aaf6a6be364175c30ff5ed62229c5d5d4 | |
parent | a129d2b80c29932e6794de2d6097e0c64ca9312e (diff) | |
download | scintilla-mirror-44b58be46765c9a7646e86a11ee99515b97783c5.tar.gz |
Check for Win32 and use DEL instead of rm. Ensures 'make clean' works on Windows.
-rw-r--r-- | gtk/makefile | 10 |
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 |