From d8db96cbbfd54e2d0eaffcfb81d286c32900193d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 26 Sep 2013 15:13:03 -0700 Subject: [PATCH] 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 --- mk/clean.mk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mk/clean.mk b/mk/clean.mk index cb8861f6597..b6468d10110 100644 --- a/mk/clean.mk +++ b/mk/clean.mk @@ -54,9 +54,8 @@ clean-misc: $(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist $(Q)rm -Rf $(foreach ext, \ html aux cp fn ky log pdf pg toc tp vr cps, \ - $(wildcard doc/*.$(ext) \ - doc/*/*.$(ext) \ - doc/*/*/*.$(ext))) + $(wildcard doc/*.$(ext))) + $(Q)find doc/std doc/extra -mindepth 1 | xargs rm -Rf $(Q)rm -Rf doc/version.md $(Q)rm -Rf $(foreach sub, index styles files search javascript, \ $(wildcard doc/*/$(sub)))