@@ -29,24 +29,34 @@ clean-misc:
2929 $(Q ) rm -f $(ML_DEPFILES:%.d=%.d.tmp )
3030 $(Q ) rm -f $(C_DEPFILES:%.d=%.d.tmp )
3131 $(Q ) rm -f $(CRATE_DEPFILES:%.d=%.d.tmp )
32- $(Q ) rm -f $(GENERATED )
32+ $(Q ) rm -Rf $(DOCS )
33+ $(Q ) rm -Rf $(GENERATED )
3334 $(Q ) rm -f rustllvm/$(CFG_RUSTLLVM ) rustllvm/rustllvmbits.a
3435 $(Q ) rm -f rt/$(CFG_RUNTIME )
35- $(Q ) find rt -name ' *.o' -delete
36- $(Q ) find rt -name ' *.a' -delete
36+ $(Q ) find rustllvm llvm rt -name ' *.[odasS]' -delete
37+ $(Q ) find rustllvm llvm rt -name ' *.so' -delete
38+ $(Q ) find rustllvm llvm rt -name ' *.dylib' -delete
39+ $(Q ) find rustllvm llvm rt -name ' *.dll' -delete
40+ $(Q ) find rustllvm rt -name ' *.def' -delete
41+ $(Q ) rm -Rf $(wildcard rt/* /libuv/Default)
3742 $(Q ) rm -f test/run_pass_stage2.rc test/run_pass_stage2_driver.rs
3843 $(Q ) rm -Rf $(PKG_NAME ) -* .tar.gz dist
39- $(Q ) rm -f $(foreach ext,o a d bc s exe,$(wildcard stage* /* .$(ext ) ) )
4044 $(Q ) rm -Rf $(foreach ext,out out.tmp \
4145 stage0$(X) stage1$(X) stage2$(X) \
42- bc o s exe dSYM, \
46+ bc o s so dll exe dSYM, \
4347 $(wildcard test/*.$(ext) \
4448 test/*/*.$(ext) \
4549 test/bench/*/*.$(ext)))
4650 $(Q)rm -Rf $(foreach ext, \
47- aux cp fn ky log pdf html pg toc tp vr cps, \
48- $(wildcard doc/*.$(ext)))
51+ css html js \
52+ aux cp fn ky log pdf pg toc tp vr cps, \
53+ $(wildcard doc/*.$(ext) \
54+ doc/*/*.$(ext) \
55+ doc/*/*/*.$(ext)))
56+ $(Q)rm -Rf doc/keywords.texi
4957 $(Q)rm -Rf doc/version.texi
58+ $(Q)rm -Rf $(foreach sub, index styles files search javascript, \
59+ $(wildcard doc/*/$(sub)))
5060 $(Q)rm -rf libuv
5161
5262define CLEAN_HOST_STAGE_N
@@ -55,6 +65,7 @@ clean$(1)_H_$(2):
5565 $(Q ) rm -f $$(HBIN$(1 ) _H_$(2 ) ) /rustc$(X )
5666 $(Q ) rm -f $$(HBIN$(1 ) _H_$(2 ) ) /fuzzer$(X )
5767 $(Q ) rm -f $$(HBIN$(1 ) _H_$(2 ) ) /cargo$(X )
68+ $(Q ) rm -f $$(HBIN$(1 ) _H_$(2 ) ) /rustdoc$(X )
5869 $(Q ) rm -f $$(HLIB$(1 ) _H_$(2 ) ) /$(CFG_RUNTIME )
5970 $(Q ) rm -f $$(HLIB$(1 ) _H_$(2 ) ) /$(CFG_CORELIB )
6071 $(Q ) rm -f $$(HLIB$(1 ) _H_$(2 ) ) /$(CFG_STDLIB )
@@ -76,6 +87,8 @@ define CLEAN_TARGET_STAGE_N
7687clean$(1 ) _T_$(2 ) _H_$(3 ) :
7788 $(Q ) rm -f $$(TBIN$(1 ) _T_$(2 ) _H_$(3 ) ) /rustc$(X )
7889 $(Q ) rm -f $$(TBIN$(1 ) _T_$(2 ) _H_$(3 ) ) /fuzzer$(X )
90+ $(Q ) rm -f $$(TBIN$(1 ) _T_$(2 ) _H_$(3 ) ) /cargo$(X )
91+ $(Q ) rm -f $$(TBIN$(1 ) _T_$(2 ) _H_$(3 ) ) /rustdoc$(X )
7992 $(Q ) rm -f $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_RUNTIME )
8093 $(Q ) rm -f $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_CORELIB )
8194 $(Q ) rm -f $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_STDLIB )
@@ -86,7 +99,8 @@ clean$(1)_T_$(2)_H_$(3):
8699 $(Q ) rm -f $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_RUSTLLVM )
87100 $(Q ) rm -f $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /libstd.rlib
88101 $(Q ) rm -f $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /intrinsics.bc
89-
102+ $(Q ) rm -f $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /intrinsics.ll
103+ $(Q ) rm -f $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /libmorestack.a
90104endef
91105
92106$(foreach host, $(CFG_TARGET_TRIPLES), \
0 commit comments