Only clean rust-cocoa on mac

This commit is contained in:
Brian Anderson 2012-04-18 15:32:12 -07:00
parent 54b74ef209
commit 85c022da57

View file

@ -21,12 +21,14 @@ SERVO_DEPS = \
$(RUST_SRC) \ $(RUST_SRC) \
$(NULL) $(NULL)
CHECK_DEPS = CHECK_DEPS =
CLEAN_DEPS =
ifeq ($(OSTYPE),darwin) ifeq ($(OSTYPE),darwin)
SERVO_DEPS += src/rust-cocoa/libcocoa.dummy SERVO_DEPS += src/rust-cocoa/libcocoa.dummy
# I want the cocoa check to come before the servo check since if cocoa # I want the cocoa check to come before the servo check since if cocoa
# doesn't work neither does servo # doesn't work neither does servo
CHECK_DEPS += check-cocoa CHECK_DEPS += check-cocoa
CLEAN_DEPS += clean-cocoa
endif endif
SERVO_DEPS += \ SERVO_DEPS += \
@ -40,6 +42,12 @@ CHECK_DEPS += \
check-servo \ check-servo \
$(NULL) $(NULL)
CLEAN_DEPS += \
clean-sdl \
clean-azure \
clean-servo \
$(NULL)
.PHONY: all .PHONY: all
all: servo all: servo
@ -82,8 +90,20 @@ src/rust-cocoa/cocoa-test:
make check -C src/rust-cocoa make check -C src/rust-cocoa
.PHONY: clean .PHONY: clean
clean: clean: $(CLEAN_DEPS)
.PHONY: clean-azure
clean-azure:
make clean -C src/rust-azure make clean -C src/rust-azure
.PHONY: clean-sdl
clean-sdl:
make clean -C src/rust-sdl make clean -C src/rust-sdl
.PHONY: clean-cocoa
clean-cocoa:
make clean -C src/rust-cocoa make clean -C src/rust-cocoa
.PHONY: clean-servo
clean-servo:
rm -f servo servo-test rm -f servo servo-test