2011-05-01 15:18:52 -05:00
|
|
|
######################################################################
|
|
|
|
# Cleanup
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@$(call E, cleaning)
|
|
|
|
$(Q)rm -f $(RUNTIME_OBJS) $(RUNTIME_DEF)
|
|
|
|
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
|
|
|
|
$(Q)rm -f $(ML_DEPFILES) $(C_DEPFILES) $(CRATE_DEPFILES)
|
|
|
|
$(Q)rm -f $(ML_DEPFILES:%.d=%.d.tmp)
|
|
|
|
$(Q)rm -f $(C_DEPFILES:%.d=%.d.tmp)
|
|
|
|
$(Q)rm -f $(CRATE_DEPFILES:%.d=%.d.tmp)
|
|
|
|
$(Q)rm -f $(GENERATED)
|
2011-07-20 17:55:51 -05:00
|
|
|
$(Q)rm -f stage0/rustc$(X) stage0/lib/glue* stage0/lib/main.o
|
|
|
|
$(Q)rm -f stage0/lib/$(CFG_RUNTIME) stage0/lib/$(CFG_STDLIB)
|
|
|
|
$(Q)rm -f stage0/$(CFG_RUNTIME) stage0/$(CFG_STDLIB)
|
|
|
|
$(Q)rm -f stage0/$(CFG_RUSTLLVM) stage0/lib/intrinsics.bc
|
|
|
|
$(Q)rm -f stage1/rustc$(X) stage1/lib/glue* stage1/lib/main.o
|
|
|
|
$(Q)rm -f stage1/lib/$(CFG_RUNTIME) stage1/lib/$(CFG_STDLIB)
|
|
|
|
$(Q)rm -f stage1/$(CFG_RUNTIME) stage1/$(CFG_STDLIB)
|
|
|
|
$(Q)rm -f stage1/$(CFG_RUSTLLVM) stage1/lib/intrinsics.bc
|
|
|
|
$(Q)rm -f stage2/rustc$(X) stage2/lib/glue* stage2/lib/main.o
|
|
|
|
$(Q)rm -f stage2/lib/$(CFG_RUNTIME) stage2/lib/$(CFG_STDLIB)
|
|
|
|
$(Q)rm -f stage2/$(CFG_RUNTIME) stage2/$(CFG_STDLIB)
|
|
|
|
$(Q)rm -f stage2/$(CFG_RUSTLLVM) stage2/lib/intrinsics.bc
|
|
|
|
$(Q)rm -f stage3/rustc$(X) stage3/lib/glue* stage3/lib/main.o
|
|
|
|
$(Q)rm -f stage3/lib/$(CFG_RUNTIME) stage3/lib/$(CFG_STDLIB)
|
|
|
|
$(Q)rm -f stage3/$(CFG_RUNTIME) stage3/$(CFG_STDLIB)
|
|
|
|
$(Q)rm -f stage3/$(CFG_RUSTLLVM) stage3/lib/intrinsics.bc
|
|
|
|
$(Q)rm -f stage1/fuzzer stage1/lib/$(CFG_LIBRUSTC)
|
2011-05-01 15:18:52 -05:00
|
|
|
$(Q)rm -f rustllvm/$(CFG_RUSTLLVM) rustllvm/rustllvmbits.a
|
|
|
|
$(Q)rm -f rt/$(CFG_RUNTIME)
|
2011-06-07 15:41:19 -05:00
|
|
|
$(Q)rm -f rt/main.o
|
2011-07-07 19:22:39 -05:00
|
|
|
$(Q)rm -f rt/main.ll
|
2011-05-01 15:18:52 -05:00
|
|
|
$(Q)rm -Rf $(PKG_NAME)-*.tar.gz dist
|
|
|
|
$(Q)rm -f $(foreach ext,o a d bc s exe,$(wildcard stage*/*.$(ext)))
|
2011-05-03 17:51:21 -05:00
|
|
|
$(Q)rm -Rf $(foreach ext,out out.tmp \
|
|
|
|
stage0$(X) stage1$(X) stage2$(X) \
|
|
|
|
bc o s exe dSYM, \
|
2011-06-29 17:12:02 -05:00
|
|
|
$(wildcard test/*.$(ext) \
|
|
|
|
test/*/*.$(ext) \
|
|
|
|
test/bench/*/*.$(ext)))
|
2011-05-01 15:18:52 -05:00
|
|
|
$(Q)rm -Rf $(foreach ext, \
|
|
|
|
aux cp fn ky log pdf html pg toc tp vr cps, \
|
|
|
|
$(wildcard doc/*.$(ext)))
|
|
|
|
$(Q)rm -Rf doc/version.texi
|