diff options
author | nyamatongwe <unknown> | 2011-01-22 10:56:42 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-01-22 10:56:42 +1100 |
commit | 760c3011e2318473346f95415abd20b6812045fa (patch) | |
tree | 0fa6100470b99dc47566b4e29fa07d52b80681a2 | |
parent | 8fd0fabbef65fee9e128547d68eef6bdbe3485e4 (diff) | |
download | scintilla-mirror-760c3011e2318473346f95415abd20b6812045fa.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 |