Skip to content

Commit 76e8f08

Browse files
committed
auto merge of #9544 : alexcrichton/rust/clean-docs, r=pnkfelix
This purges doc/{std,extra} entirely during a `make clean` instead of just the html files in some top level directories. This should help old documentation from showing up on static.rust-lang.org
2 parents 78c3fac + d8db96c commit 76e8f08

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mk/clean.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ clean-misc:
5454
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
5555
$(Q)rm -Rf $(foreach ext, \
5656
html aux cp fn ky log pdf pg toc tp vr cps, \
57-
$(wildcard doc/*.$(ext) \
58-
doc/*/*.$(ext) \
59-
doc/*/*/*.$(ext)))
57+
$(wildcard doc/*.$(ext)))
58+
$(Q)find doc/std doc/extra -mindepth 1 | xargs rm -Rf
6059
$(Q)rm -Rf doc/version.md
6160
$(Q)rm -Rf $(foreach sub, index styles files search javascript, \
6261
$(wildcard doc/*/$(sub)))

0 commit comments

Comments
 (0)