On Tue, 01 Nov 2016, Markus Heiser <[email protected]> wrote: > Removes intermediate files: > > - Documentation/DocBook/.*.xml.cmd > - Documentation/.../*.pyc > - Documentation/.../*.pyo > - Documentation/.../__pycache__ > > To be more future-proof, this covers more than we need today. I guess > there comes the day we assemble a python package structure under > Documentation/sphinx. > > References: > http://lkml.kernel.org/r/camuhmdvxqph7-9xj+ye_pgoa+-fe0969cskoehyh3uubycr...@mail.gmail.com > Reported-by: Geert Uytterhoeven <[email protected]>
Geert reports about writing files to the source tree to begin with, and the fix is to stop doing that instead of cleaning up afterwards! The fix for that is [1]. So please take out the parts touching the source tree. And ITYM: References: http://lkml.kernel.org/r/CA+r1Zhjr5SCVAroREBv84t9bxDVu5jVJ_Fu=bbvdgnnabdq...@mail.gmail.com Reported-by: Jim Davis <[email protected]> BR, Jani. [1] http://lkml.kernel.org/r/[email protected] > Signed-off-by: Markus Heiser <[email protected]> > --- > Documentation/DocBook/Makefile | 1 + > Documentation/Makefile.sphinx | 4 +++- > 2 files changed, 4 insertions(+), 1 deletion(-) > > diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile > index fdf8232..263e657 100644 > --- a/Documentation/DocBook/Makefile > +++ b/Documentation/DocBook/Makefile > @@ -264,6 +264,7 @@ clean-files := $(DOCBOOKS) \ > $(patsubst %.xml, %.aux.xml, $(DOCBOOKS)) \ > $(patsubst %.xml, %.xml.db, $(DOCBOOKS)) \ > $(patsubst %.xml, %.xml, $(DOCBOOKS)) \ > + $(patsubst %.xml, .%.xml.cmd, $(DOCBOOKS)) \ > $(index) > > clean-dirs := $(patsubst %.xml,%,$(DOCBOOKS)) man > diff --git a/Documentation/Makefile.sphinx b/Documentation/Makefile.sphinx > index 92deea3..3e8a7d7 100644 > --- a/Documentation/Makefile.sphinx > +++ b/Documentation/Makefile.sphinx > @@ -92,7 +92,9 @@ mandocs: > installmandocs: > > cleandocs: > - $(Q)rm -rf $(BUILDDIR) > + $(Q)rm -rf $(obj)/output > + $(Q)find $(srctree)/$(src) -type d -name '__pycache__' | xargs rm -rf > + $(Q)find $(srctree)/$(src) -name '*.pyc' -o -name '*.pyo' | xargs rm -f > > endif # HAVE_SPHINX -- Jani Nikula, Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
