From 44b58be46765c9a7646e86a11ee99515b97783c5 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 22 Jan 2011 10:56:42 +1100 Subject: Check for Win32 and use DEL instead of rm. Ensures 'make clean' works on Windows. --- gtk/makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3