@@ -29,24 +29,34 @@ clean-misc:
29
29
$(Q ) rm -f $(ML_DEPFILES:%.d=%.d.tmp )
30
30
$(Q ) rm -f $(C_DEPFILES:%.d=%.d.tmp )
31
31
$(Q ) rm -f $(CRATE_DEPFILES:%.d=%.d.tmp )
32
- $(Q ) rm -f $(GENERATED )
32
+ $(Q ) rm -Rf $(DOCS )
33
+ $(Q ) rm -Rf $(GENERATED )
33
34
$(Q ) rm -f rustllvm/$(CFG_RUSTLLVM ) rustllvm/rustllvmbits.a
34
35
$(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)
37
42
$(Q ) rm -f test/run_pass_stage2.rc test/run_pass_stage2_driver.rs
38
43
$(Q ) rm -Rf $(PKG_NAME ) -* .tar.gz dist
39
- $(Q ) rm -f $(foreach ext,o a d bc s exe,$(wildcard stage* /* .$(ext ) ) )
40
44
$(Q ) rm -Rf $(foreach ext,out out.tmp \
41
45
stage0$(X) stage1$(X) stage2$(X) \
42
- bc o s exe dSYM, \
46
+ bc o s so dll exe dSYM, \
43
47
$(wildcard test/*.$(ext) \
44
48
test/*/*.$(ext) \
45
49
test/bench/*/*.$(ext)))
46
50
$(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
49
57
$(Q)rm -Rf doc/version.texi
58
+ $(Q)rm -Rf $(foreach sub, index styles files search javascript, \
59
+ $(wildcard doc/*/$(sub)))
50
60
$(Q)rm -rf libuv
51
61
52
62
define CLEAN_HOST_STAGE_N
@@ -55,6 +65,7 @@ clean$(1)_H_$(2):
55
65
$(Q ) rm -f $$(HBIN$(1 ) _H_$(2 ) ) /rustc$(X )
56
66
$(Q ) rm -f $$(HBIN$(1 ) _H_$(2 ) ) /fuzzer$(X )
57
67
$(Q ) rm -f $$(HBIN$(1 ) _H_$(2 ) ) /cargo$(X )
68
+ $(Q ) rm -f $$(HBIN$(1 ) _H_$(2 ) ) /rustdoc$(X )
58
69
$(Q ) rm -f $$(HLIB$(1 ) _H_$(2 ) ) /$(CFG_RUNTIME )
59
70
$(Q ) rm -f $$(HLIB$(1 ) _H_$(2 ) ) /$(CFG_CORELIB )
60
71
$(Q ) rm -f $$(HLIB$(1 ) _H_$(2 ) ) /$(CFG_STDLIB )
@@ -76,6 +87,8 @@ define CLEAN_TARGET_STAGE_N
76
87
clean$(1 ) _T_$(2 ) _H_$(3 ) :
77
88
$(Q ) rm -f $$(TBIN$(1 ) _T_$(2 ) _H_$(3 ) ) /rustc$(X )
78
89
$(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 )
79
92
$(Q ) rm -f $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_RUNTIME )
80
93
$(Q ) rm -f $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_CORELIB )
81
94
$(Q ) rm -f $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_STDLIB )
@@ -86,7 +99,8 @@ clean$(1)_T_$(2)_H_$(3):
86
99
$(Q ) rm -f $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$(CFG_RUSTLLVM )
87
100
$(Q ) rm -f $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /libstd.rlib
88
101
$(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
90
104
endef
91
105
92
106
$(foreach host, $(CFG_TARGET_TRIPLES), \
0 commit comments