Skip to content

Commit d8db96c

Browse files
committed
mk: Fully clean out old documentation
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
1 parent d062de8 commit d8db96c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mk/clean.mk

+2-3
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)