From 85c022da57ce3ebfc454c443a4c32d08bcfb03a6 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 18 Apr 2012 15:32:12 -0700 Subject: [PATCH] Only clean rust-cocoa on mac --- Makefile.in | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 5b10f19a1e9..a3c98d7921b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -21,12 +21,14 @@ SERVO_DEPS = \ $(RUST_SRC) \ $(NULL) CHECK_DEPS = +CLEAN_DEPS = ifeq ($(OSTYPE),darwin) SERVO_DEPS += src/rust-cocoa/libcocoa.dummy # I want the cocoa check to come before the servo check since if cocoa # doesn't work neither does servo CHECK_DEPS += check-cocoa + CLEAN_DEPS += clean-cocoa endif SERVO_DEPS += \ @@ -40,6 +42,12 @@ CHECK_DEPS += \ check-servo \ $(NULL) +CLEAN_DEPS += \ + clean-sdl \ + clean-azure \ + clean-servo \ + $(NULL) + .PHONY: all all: servo @@ -82,8 +90,20 @@ src/rust-cocoa/cocoa-test: make check -C src/rust-cocoa .PHONY: clean -clean: +clean: $(CLEAN_DEPS) + +.PHONY: clean-azure +clean-azure: make clean -C src/rust-azure + +.PHONY: clean-sdl +clean-sdl: make clean -C src/rust-sdl + +.PHONY: clean-cocoa +clean-cocoa: make clean -C src/rust-cocoa + +.PHONY: clean-servo +clean-servo: rm -f servo servo-test