From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757768AbcIGN2J (ORCPT ); Wed, 7 Sep 2016 09:28:09 -0400 Received: from mga04.intel.com ([192.55.52.120]:39817 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757271AbcIGN2G (ORCPT ); Wed, 7 Sep 2016 09:28:06 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,296,1470726000"; d="scan'208";a="1052581832" From: Jani Nikula To: Geert Uytterhoeven , Jonathan Corbet , Markus Heiser Cc: "linux-doc\@vger.kernel.org" , "linux-kernel\@vger.kernel.org" Subject: Re: pyc files in source dir with O= In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: User-Agent: Notmuch/0.22.1+63~g648dcc7 (https://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) Date: Wed, 07 Sep 2016 16:28:03 +0300 Message-ID: <87oa3zx2jg.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 07 Sep 2016, Geert Uytterhoeven wrote: > When running "make htmldocs O=/path/to/somewhere", *.pyc files end up > in the source tree instead of in the build tree: > > $ git ls-files -o > Documentation/sphinx/kernel-doc.pyc > Documentation/sphinx/kernel_include.pyc > Documentation/sphinx/rstFlatTable.pyc > $ > > This is with v4.8-rc5. > > With next-20160907, two more files appear: > > Documentation/sphinx/cdomain.pyc > Documentation/sphinx/load_config.pyc This should help diff --git a/Documentation/Makefile.sphinx b/Documentation/Makefile.sphinx index 92deea30b183..a4cba2d1aaf1 100644 --- a/Documentation/Makefile.sphinx +++ b/Documentation/Makefile.sphinx @@ -53,6 +53,7 @@ loop_cmd = $(echo-cmd) $(cmd_$(1)) quiet_cmd_sphinx = SPHINX $@ --> file://$(abspath $(BUILDDIR)/$3/$4); cmd_sphinx = $(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/media all;\ + PYTHONDONTWRITEBYTECODE=1 \ BUILDDIR=$(abspath $(BUILDDIR)) SPHINX_CONF=$(abspath $(srctree)/$(src)/$5/$(SPHINX_CONF)) \ $(SPHINXBUILD) \ -b $2 \ Side note, I'm really sad the Sphinx build has grown so ugly and complicated now. :( BR, Jani. -- Jani Nikula, Intel Open Source Technology Center